Skip to content

Commit 092f26b

Browse files
committed
add full height modifier
1 parent 66f24e7 commit 092f26b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/react-core/src/components/Compass/CompassSection.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ interface CompassSectionProps extends React.HTMLProps<HTMLDivElement> {
1515
isGradientBorder?: boolean;
1616
/** Applies a thinking style to the section. */
1717
isThinking?: boolean;
18+
/** Indicates the section should expand to fill the available height. */
19+
isFullHeight?: boolean;
1820
}
1921

2022
export const CompassSection: React.FunctionComponent<CompassSectionProps> = ({
@@ -25,6 +27,7 @@ export const CompassSection: React.FunctionComponent<CompassSectionProps> = ({
2527
isBorderless,
2628
isGradientBorder,
2729
isThinking,
30+
isFullHeight,
2831
...props
2932
}) => (
3033
<div
@@ -35,6 +38,7 @@ export const CompassSection: React.FunctionComponent<CompassSectionProps> = ({
3538
isBorderless && 'pf-m-no-border',
3639
isGradientBorder && 'pf-m-gradient-border',
3740
isThinking && 'pf-m-thinking',
41+
isFullHeight && 'pf-m-full-height',
3842
className
3943
)}
4044
{...props}

0 commit comments

Comments
 (0)