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
43 lines
724 B
TypeScript
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',
|
|
},
|
|
}
|