Skip to content

Commit 4a2de61

Browse files
committed
feat(@clayui/multi-step-nav): LPD-36816 Adds prop center to center the nav
1 parent ad0abb8 commit 4a2de61

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/clay-multi-step-nav/src/MultiStepNav.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ export interface IProps extends React.HTMLAttributes<HTMLOListElement> {
1717
*/
1818
autoCollapse?: boolean;
1919

20+
/**
21+
* Flag to indicate if nav should add the `multi-step-nav-center` class.
22+
*/
23+
center?: boolean;
24+
2025
/**
2126
* Flag to indicate if nav should add `multi-step-item-fixed-width` class.
2227
*/
@@ -37,6 +42,7 @@ function ClayMultiStepNav(props: IProps): JSX.Element & {
3742

3843
function ClayMultiStepNav({
3944
autoCollapse = true,
45+
center,
4046
children,
4147
className,
4248
fixedWidth,
@@ -46,6 +52,7 @@ function ClayMultiStepNav({
4652
return (
4753
<ol
4854
className={classNames('multi-step-nav', className, {
55+
'multi-step-nav-center': center,
4956
'multi-step-item-fixed-width': fixedWidth,
5057
'multi-step-nav-collapse-sm': autoCollapse,
5158
[`multi-step-indicator-label-${indicatorLabel}`]:

0 commit comments

Comments
 (0)