import type { Meta, StoryObj } from '@storybook/react-vite' import { IconExternalLink } from '@tabler/icons-react' import { Button } from './Button' import { Card } from './Card' import { ShowMore } from './ShowMore' const LONG = Array.from( { length: 6 }, (_, i) => `Paragraph ${i + 1}. A long description written out in full, the way a real brief is, so that it runs past the height the box allows and needs cutting.`, ).join(' ') /** Long content cut behind a fade, with "Show more" under it. Short content is drawn whole. */ const meta = { title: 'Layout/ShowMore', component: ShowMore, decorators: [(Story) =>
{LONG}
}, argTypes: { children: { control: false } }, } satisfies MetaOne line of description.
}, } /** Inside an inset card: `surface="inset"`, so the fade ends in the card's fill. */ export const InACard: Story = { args: { surface: 'inset' }, render: (args) => (Title
One line of description.
}, render: InACard.render, }