import type { Meta, StoryObj } from '@storybook/html'; import '@42/styles/card.css'; interface CardArgs { header: string; body: string; footer: string; } const meta: Meta = { title: 'Presentational/Card', tags: ['autodocs'], argTypes: { header: { control: 'text' }, body: { control: 'text' }, footer: { control: 'text' }, }, args: { header: 'Card title', body: 'Headless components ship behaviour; the card is pure presentation.', footer: 'Footer', }, render: ({ header, body, footer }) => { const card = document.createElement('div'); card.className = 'c42-card'; card.style.maxWidth = '24rem'; card.innerHTML = `
${header}
${body}
`; return card; }, }; export default meta; type Story = StoryObj; export const Default: Story = {};