Files
web/packages/design-system/lib/components/ChipButton/ChipButton.stories.tsx
Matilda Landström 5de2a993a7 Merged in feat/SW-1711-switch-icons (pull request #1558)
Switches out all the old icons to new ones, and moves them to the design system. The new icons are of three different types: Materialise Symbol, Nucleo, and Customized. Also adds further mapping between facilities/amenities and icons.

Approved-by: Michael Zetterberg
Approved-by: Erik Tiekstra
2025-03-27 09:42:52 +00:00

35 lines
648 B
TypeScript

import type { Meta, StoryObj } from '@storybook/react'
import { fn } from '@storybook/test'
import { ChipButton } from './ChipButton.tsx'
import { MaterialSymbol } from 'react-material-symbols'
const meta: Meta<typeof ChipButton> = {
title: 'Components/Chip/ChipButton 🚧',
component: ChipButton,
argTypes: {
onPress: {
table: {
disable: true,
},
},
},
}
export default meta
type Story = StoryObj<typeof ChipButton>
export const Default: Story = {
args: {
onPress: fn(),
children: (
<>
Button Chip
<MaterialSymbol icon="chevron_right" size={20} />
</>
),
},
}