split-button.stories.tsx 774 B

12345678910111213141516171819202122232425262728293031323334
  1. import { SplitButton } from '@/features/ui/components/bootstrap-5/split-button'
  2. import type { Meta } from '@storybook/react'
  3. type Args = React.ComponentProps<typeof SplitButton>
  4. export const Dropdown = (args: Args) => {
  5. return <SplitButton {...args} />
  6. }
  7. const meta: Meta<typeof SplitButton> = {
  8. title: 'Shared/Components/Bootstrap 5/SplitButton',
  9. component: SplitButton,
  10. args: {
  11. align: { sm: 'start' },
  12. id: 'split-button',
  13. items: [
  14. { eventKey: '1', label: 'Action 1' },
  15. { eventKey: '2', label: 'Action 2' },
  16. { eventKey: '3', label: 'Action 3' },
  17. ],
  18. text: 'Split Button',
  19. },
  20. argTypes: {
  21. id: {
  22. table: {
  23. disable: true,
  24. },
  25. },
  26. },
  27. parameters: {
  28. bootstrap5: true,
  29. },
  30. }
  31. export default meta