Skip to content

Commit d47205f

Browse files
committed
feat(@clayui/management-toolbar): LPD-49362 Add fluidSize prop
1 parent bf787f0 commit d47205f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/clay-management-toolbar/src/ManagementToolbar.tsx

+9-1
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,18 @@ interface IProps extends React.HTMLAttributes<HTMLElement> {
1616
* Flag that identifies when to show the active state of the component.
1717
*/
1818
active?: boolean;
19+
20+
/**
21+
* Set a maximum width on container-fluid.
22+
*/
23+
fluidSize?: React.ComponentProps<typeof ClayLayout.Container>['fluidSize'];
1924
}
2025

2126
function ManagementToolbar({
2227
active = false,
2328
children,
2429
className,
30+
fluidSize,
2531
...otherProps
2632
}: IProps) {
2733
return (
@@ -36,7 +42,9 @@ function ManagementToolbar({
3642
}
3743
)}
3844
>
39-
<ClayLayout.ContainerFluid>{children}</ClayLayout.ContainerFluid>
45+
<ClayLayout.ContainerFluid size={fluidSize}>
46+
{children}
47+
</ClayLayout.ContainerFluid>
4048
</nav>
4149
);
4250
}

0 commit comments

Comments
 (0)