Skip to content

Commit

Permalink
docs(Table): Extended example
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Pinedo committed Nov 21, 2023
1 parent 294e747 commit ee5e138
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions packages/table/src/recipes/Table.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ const data = Holo.of()
],
Holo.chance.integer({ min: 1, max: 4 }),
),
profession: 'profession',
email: 'email',
quote: 'sentence',
IP6: 'ipv6',
address: 'address',
website: 'url',
secondaryWebsite: 'url',
})
.repeat(200)
.generate();
Expand Down Expand Up @@ -126,6 +133,39 @@ const tableOptions: TableOptionsProps = {
headerName: 'Tags',
type: 'tags',
},
{
id: 'profession',
headerName: 'Profession',
type: 'text',
},
{
id: 'email',
headerName: 'Email',
type: 'link',
},
{
id: 'quote',
headerName: 'Favourite quote',
type: 'text',
cellStyle: {
width: 100,
},
},
{
id: 'address',
headerName: 'Address',
type: 'text',
},
{
id: 'website',
headerName: 'Website',
type: 'link',
},
{
id: 'secondaryWebsite',
headerName: 'Secondary Website',
type: 'link',
},
],
};

Expand Down

0 comments on commit ee5e138

Please sign in to comment.