generated from nl-design-system/example
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
476d4b9
commit a24888b
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import readme from '@frameless/components-css/card/README.md?raw'; | ||
import { Card } from '@frameless/components-react/src/Card'; | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import '@frameless/components-css/card/index.scss'; | ||
|
||
// adds Card to Storybook | ||
const meta = { | ||
title: 'React Component/Card', | ||
|
||
id: 'react-card', | ||
|
||
component: Card, | ||
|
||
argTypes: { | ||
children: { | ||
name: 'Content', | ||
|
||
description: 'Card', | ||
|
||
type: { | ||
name: 'string', | ||
required: true, | ||
}, | ||
|
||
defaultValue: '', | ||
}, | ||
}, | ||
|
||
args: {}, | ||
|
||
tags: ['autodocs'], | ||
|
||
parameters: { | ||
docs: { | ||
description: { | ||
component: readme, | ||
}, | ||
}, | ||
}, | ||
} satisfies Meta<typeof Card>; | ||
|
||
export default meta; | ||
|
||
// defines that this (part of the) story is documentation | ||
type Story = StoryObj<typeof meta>; | ||
|
||
// adds Frameless Card section to Card in Storybook | ||
export const Default: Story = { | ||
name: 'Frameless Card', // in sidenav shows Frameless Card below Docs | ||
args: {}, | ||
parameters: {}, | ||
}; |