import React from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { predefinedArgTypes } from '../../utils/storybook'; import { Button } from '../Button/Button'; import { List } from '../List/List'; import { Tag } from '../Tag/Tag'; import { H2 } from '../Typography/H2/H2'; import type { ActionCardProps } from './ActionCard'; import { ActionCard } from './ActionCard'; const meta: Meta = { title: 'UI kit/ActionCard', component: ActionCard, tags: ['autodocs'], }; export default meta; type Story = StoryObj; const ListExample = ({ short, ...rest }: { short?: boolean }) => ( {!short && ( <> )} ); const LogoExample = () => ( ACME Corp ); const defaultArgs: Partial = { tags: ( <> Hello world! ), title: , description: predefinedArgTypes.string.mapping['"Lorem ipsum" (M)'], children: , buttons: ({ primaryButtonProps, secondaryButtonProps }) => ( <> ), }; export const Default: Story = { args: defaultArgs, argTypes: {}, }; export const ThreeColumns: Story = { args: { ...defaultArgs, responsive: false, }, render: props => ( <> Hello} /> ), decorators: [ Story => ( <>
), ], };