import type { Meta, StoryObj } from '@storybook/react-vite' import { LinkChip } from './LinkChip' import { GROUP, ITEM, LOADING, PAGE, PLACE, ready, SAID, UNAVAILABLE } from './linked.examples' const meta = { title: 'Components/LinkChip', component: LinkChip, parameters: { layout: 'padded' }, args: { link: ready(ITEM) }, } satisfies Meta export default meta type Story = StoryObj /** In a sentence. Hover it for its card. */ export const InASentence: Story = { render: (args) => (

A sentence that links in the middle of its words, and goes on after it.

), } /** Every kind, by its icon; words a person wrote lead with their face. */ export const EachKind: Story = { render: () => (

), } /** Still being looked up: the icon, known from the address, and a bar. */ export const Loading: Story = { args: { link: LOADING } } /** Deleted, or not this reader's to see: said in words. */ export const NotAvailable: Story = { args: { link: UNAVAILABLE } } /** No card on hover: where a card would cover what the reader is choosing from. */ export const WithoutPreview: Story = { args: { preview: false } }