Files
web/packages/design-system/lib/components/TripAdvisorChip/TripdAdvisorChip.stories.tsx
Bianca Widstam 5f8d77e54a Merged in fix/SW-1655-tripadvisor-icon-map (pull request #2695)
fix(SW-1655): update design tripadvisor on hotel map card

* fix(SW-1655): update design tripadvisor on hotel map card

* fix(SW-1655): update radius

* fix(SW-1655): use tripadvisor chip, create different variants

* fix(SW-1655): update variants, storybook, and global css


Approved-by: Joakim Jäderberg
2025-08-26 13:08:28 +00:00

43 lines
724 B
TypeScript

import type { Meta, StoryObj } from '@storybook/nextjs-vite'
import { TripAdvisorChip } from './index'
const meta: Meta<typeof TripAdvisorChip> = {
title: 'Components/TripAdvisorChip',
component: TripAdvisorChip,
argTypes: {
rating: {
control: {
type: 'number',
min: 0,
max: 5,
step: 0.1,
},
},
variant: {
control: {
type: 'select',
},
options: ['default', 'small'],
},
},
}
export default meta
type Story = StoryObj<typeof TripAdvisorChip>
export const PrimaryDefault: Story = {
args: {
rating: 4.5,
variant: 'default',
},
}
export const Small: Story = {
args: {
rating: 4.5,
variant: 'small',
},
}