diff --git a/src/ui/atoms/list/usage.mdx b/src/ui/atoms/list/usage.mdx index 78c27f8d..fc07b48e 100644 --- a/src/ui/atoms/list/usage.mdx +++ b/src/ui/atoms/list/usage.mdx @@ -195,14 +195,19 @@ Size of list item is controlled by the `component-level` block property not from - , id: 0, text: 'Red' }, - { left: , id: 1, text: 'Green' }, - { left: , id: 2, text: 'Blue' }, - ]} - /> + + {links.map(({ id, content, disabled }) => ( + } + iconLeft={} + /> + ))} + @@ -236,14 +241,20 @@ Size of list item is controlled by the `component-level` block property not from - , id: 0, text: 'Red' }, - { left: , id: 1, text: 'Green' }, - { left: , id: 2, text: 'Blue' }, - ]} - /> + + {links.map(({ id, content, disabled }) => ( + } + iconRight={} + key={id} + text={content} + variant="primary" + /> + ))} + diff --git a/src/ui/atoms/table/usage.mdx b/src/ui/atoms/table/usage.mdx index b7b98e27..b7b1e58b 100644 --- a/src/ui/atoms/table/usage.mdx +++ b/src/ui/atoms/table/usage.mdx @@ -87,8 +87,8 @@ To set number of columns pass `columns` prop to the Table component. - {tableRows.map((row) => ( - + {tableRows.map((row, key) => ( + {tableHead.map(({ id }) => ( {row[id]} ))} diff --git a/src/ui/molecules/checkbox/usage.mdx b/src/ui/molecules/checkbox/usage.mdx index b400d1cb..becaf31e 100644 --- a/src/ui/molecules/checkbox/usage.mdx +++ b/src/ui/molecules/checkbox/usage.mdx @@ -71,8 +71,15 @@ Primary variant should be used to focus user attention. The disabled checkbox is !i}> {(value, change) => ( <> - - + + )} diff --git a/src/ui/molecules/field/usage.mdx b/src/ui/molecules/field/usage.mdx index 19658cef..0c03c761 100644 --- a/src/ui/molecules/field/usage.mdx +++ b/src/ui/molecules/field/usage.mdx @@ -55,7 +55,7 @@ or also as a label of group of component, eg checkbox or radiobutton groups. onChange={() => console.info('On textarea change')} variant="primary" overflow="hidden" - isDisabled + disabled /> @@ -81,7 +81,7 @@ Labels and children component can be replaced in row !i}> {(value, change) => ( - + )} @@ -98,7 +98,7 @@ or in column variants !i}> {(value, change) => ( - + )} @@ -116,7 +116,7 @@ Error variant can be used to focus user attention on error. onChange={() => console.info('On textarea change')} variant="danger" overflow="hidden" - isDisabled + disabled /> @@ -131,7 +131,7 @@ Error variant can be used to focus user attention on error. !i}> {(value, change) => ( - + )} diff --git a/src/ui/molecules/radio-button/usage.mdx b/src/ui/molecules/radio-button/usage.mdx index 1bad878f..7dfaedff 100644 --- a/src/ui/molecules/radio-button/usage.mdx +++ b/src/ui/molecules/radio-button/usage.mdx @@ -49,7 +49,9 @@ Disabled radio button are uneditable. They have less opacity so that they appear !i}> - {(value, change) => } + {(value, change) => ( + + )}