mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-12 10:53:34 -05:00
e18f0817c6
Bootstrap-5 Button component GitOrigin-RevId: 1fb13b7ab2b71403b0236f1f85aec7b9545b34f1
40 lines
803 B
TypeScript
40 lines
803 B
TypeScript
import Button from '@/features/ui/components/bootstrap-5/button'
|
|
import { Meta } from '@storybook/react'
|
|
|
|
type Args = React.ComponentProps<typeof Button>
|
|
|
|
export const NewButton = (args: Args) => {
|
|
return <Button {...args} />
|
|
}
|
|
|
|
const meta: Meta<typeof Button> = {
|
|
title: 'Shared / Components / Bootstrap 5 / Button',
|
|
component: Button,
|
|
args: {
|
|
children: 'A Bootstrap 5 Button',
|
|
disabled: false,
|
|
isLoading: false,
|
|
},
|
|
argTypes: {
|
|
size: {
|
|
control: 'radio',
|
|
options: ['small', 'default', 'large'],
|
|
},
|
|
variant: {
|
|
control: 'radio',
|
|
options: [
|
|
'primary',
|
|
'secondary',
|
|
'ghost',
|
|
'danger',
|
|
'danger-ghost',
|
|
'premium',
|
|
],
|
|
},
|
|
},
|
|
parameters: {
|
|
bootstrap5: true,
|
|
},
|
|
}
|
|
|
|
export default meta
|