Inbox task 2 (#991)

* Add ability to properly cast a string, number, null to an integer

* Adding Tab UI component

* Only trigger chromatic when asked
This commit is contained in:
Charles Bochet
2023-07-29 21:24:33 -07:00
committed by GitHub
parent fc7380e0b8
commit 28765fe7c3
4 changed files with 91 additions and 6 deletions

View File

@ -39,6 +39,12 @@ export const Catalog: Story = {
parameters: {
pseudo: { hover: ['.hover'], active: ['.active'] },
catalog: [
{
name: 'states',
values: ['default', 'hover', 'active', 'disabled'],
props: (state: string) =>
state === 'default' ? {} : { className: state },
},
{
name: 'variants',
values: Object.values(ChipVariant),
@ -54,12 +60,6 @@ export const Catalog: Story = {
values: Object.values(ChipAccent),
props: (accent: ChipAccent) => ({ accent }),
},
{
name: 'states',
values: ['default', 'hover', 'active', 'disabled'],
props: (state: string) =>
state === 'default' ? {} : { className: state },
},
],
},
decorators: [CatalogDecorator],