feat(SW-3636): Storybook structure * New sections in Storybook sidebar * Group Storybook content files and add token files for spacing, border radius and shadows Approved-by: Joakim Jäderberg
27 lines
536 B
TypeScript
27 lines
536 B
TypeScript
import type { Meta, StoryObj } from '@storybook/nextjs-vite'
|
|
|
|
import { MaterialIcon } from '../Icons/MaterialIcon'
|
|
import { ChipLink } from './ChipLink.tsx'
|
|
|
|
const meta: Meta<typeof ChipLink> = {
|
|
title: 'Core Components/ChipLink',
|
|
component: ChipLink,
|
|
}
|
|
|
|
export default meta
|
|
|
|
type Story = StoryObj<typeof ChipLink>
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
href: '/',
|
|
onPress: (e) => console.log(e),
|
|
children: (
|
|
<>
|
|
Link Chip
|
|
<MaterialIcon icon="chevron_right" size={20} />
|
|
</>
|
|
),
|
|
},
|
|
}
|