File tree 1 file changed +7
-0
lines changed
packages/clay-multi-step-nav/src
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ export interface IProps extends React.HTMLAttributes<HTMLOListElement> {
17
17
*/
18
18
autoCollapse ?: boolean ;
19
19
20
+ /**
21
+ * Flag to indicate if nav should add the `multi-step-nav-center` class.
22
+ */
23
+ center ?: boolean ;
24
+
20
25
/**
21
26
* Flag to indicate if nav should add `multi-step-item-fixed-width` class.
22
27
*/
@@ -37,6 +42,7 @@ function ClayMultiStepNav(props: IProps): JSX.Element & {
37
42
38
43
function ClayMultiStepNav ( {
39
44
autoCollapse = true ,
45
+ center,
40
46
children,
41
47
className,
42
48
fixedWidth,
@@ -46,6 +52,7 @@ function ClayMultiStepNav({
46
52
return (
47
53
< ol
48
54
className = { classNames ( 'multi-step-nav' , className , {
55
+ 'multi-step-nav-center' : center ,
49
56
'multi-step-item-fixed-width' : fixedWidth ,
50
57
'multi-step-nav-collapse-sm' : autoCollapse ,
51
58
[ `multi-step-indicator-label-${ indicatorLabel } ` ] :
You can’t perform that action at this time.
0 commit comments