import type { Meta, StoryObj } from '@storybook/react-vite' import { IconSquareRounded } from '@tabler/icons-react' import { Rail } from './Rail' import { RailItem } from './RailItem' const placeholder = const meta = { title: 'Frame/RailItem', component: RailItem, args: { label: 'Item', href: '#', active: false, icon: placeholder }, argTypes: { icon: { control: false } }, } satisfies Meta export default meta type Story = StoryObj const tile = [(Story: () => React.ReactNode) =>
{Story()}
] export const Default: Story = { decorators: tile } /** Active fills the tile — and some themes give the icon their interactive colour. */ export const Active: Story = { args: { active: true }, decorators: tile } /** The Rail shell as it stands in a frame: on the left, full height, tiles at the top. */ export const InTheRail: Story = { parameters: { layout: 'fullscreen', controls: { disable: true } }, render: () => (
), }