Skip to content

Commit

Permalink
make object props disabled in storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyadeorukhkar committed Nov 23, 2023
1 parent 8ba922b commit 69e9004
Show file tree
Hide file tree
Showing 10 changed files with 87 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/blade/src/components/Table/TableBody.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ type TableRowProps<Item> = {
**/
children: React.ReactNode;
/**
* The item prop is used to pass the item to the TableRow component.
* The item prop is used to pass the individual table item to the TableRow component.
* @example
* tableData.map((tableItem) => (
* <TableRow item={item}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,26 @@ export default {
},
argTypes: {
...getStyledPropsArgTypes(),
data: {
control: {
disable: true,
},
},
sortFunctions: {
control: {
disable: true,
},
},
toolbar: {
control: {
disable: true,
},
},
pagination: {
control: {
disable: true,
},
},
},
parameters: {
docs: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ export default {
title: 'Components/Table/API',
component: TableCell,
args: {},
argTypes: {},
argTypes: {
children: {
control: {
disable: true,
},
},
},
parameters: {
docs: {
page: () => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ export default {
title: 'Components/Table/API',
component: TableFooter,
args: {},
argTypes: {},
argTypes: {
children: {
control: {
disable: true,
},
},
},
parameters: {
docs: {
page: () => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ export default {
title: 'Components/Table/API',
component: TableFooterCell,
args: {},
argTypes: {},
argTypes: {
children: {
control: {
disable: true,
},
},
},
parameters: {
docs: {
page: () => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ export default {
title: 'Components/Table/API',
component: TableFooterRow,
args: {},
argTypes: {},
argTypes: {
children: {
control: {
disable: true,
},
},
},
parameters: {
docs: {
page: () => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ export default {
title: 'Components/Table/API',
component: TableHeader,
args: {},
argTypes: {},
argTypes: {
children: {
control: {
disable: true,
},
},
},
parameters: {
docs: {
page: () => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,18 @@ export default {
title: 'Components/Table/API',
component: TableHeaderCell,
args: {},
argTypes: {},
argTypes: {
children: {
control: {
disable: true,
},
},
headerKey: {
control: {
disable: true,
},
},
},
parameters: {
docs: {
page: () => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ export default {
title: 'Components/Table/API',
component: TableHeaderRow,
args: {},
argTypes: {},
argTypes: {
children: {
control: {
disable: true,
},
},
},
parameters: {
docs: {
page: () => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,18 @@ export default {
title: 'Components/Table/API',
component: TableRow,
args: {},
argTypes: {},
argTypes: {
children: {
control: {
disable: true,
},
},
item: {
control: {
disable: true,
},
},
},
parameters: {
docs: {
page: () => (
Expand Down

0 comments on commit 69e9004

Please sign in to comment.