mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 00:09:40 +02:00
add card component (#9022)
This commit is contained in:
parent
3a49dbf803
commit
6b5940e00e
3 changed files with 38 additions and 0 deletions
18
app/react/components/Card/Card.stories.tsx
Normal file
18
app/react/components/Card/Card.stories.tsx
Normal file
|
@ -0,0 +1,18 @@
|
|||
import { Meta, Story } from '@storybook/react';
|
||||
import { PropsWithChildren } from 'react';
|
||||
|
||||
import { Card, Props } from './Card';
|
||||
|
||||
export default {
|
||||
component: Card,
|
||||
title: 'Components/Card/Card',
|
||||
} as Meta;
|
||||
|
||||
function Template({
|
||||
children,
|
||||
}: JSX.IntrinsicAttributes & PropsWithChildren<Props>) {
|
||||
return <Card>{children}</Card>;
|
||||
}
|
||||
|
||||
export const Primary: Story<PropsWithChildren<Props>> = Template.bind({});
|
||||
Primary.args = {};
|
Loading…
Add table
Add a link
Reference in a new issue