Skip to content

Commit d2a8eef

Browse files
author
Kubit
committed
Add align prop on Text storybook
1 parent 85cb9f1 commit d2a8eef

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/components/text/stories/argtypes.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ export const argtypes = (
2626
category: CATEGORY_CONTROL.MODIFIERS,
2727
},
2828
},
29+
align: {
30+
description: 'Align of text',
31+
type: { name: 'string', required: true },
32+
control: { type: 'select' },
33+
options: ['left', 'right', 'center', 'justify'],
34+
table: {
35+
type: {
36+
summary: 'string',
37+
},
38+
category: CATEGORY_CONTROL.MODIFIERS,
39+
},
40+
},
2941
component: {
3042
description: 'Component type to transform text to',
3143
type: { name: 'TextComponentType | GenericLinkType' },

0 commit comments

Comments
 (0)