UNPKG

@wonderflow/react-components

Version:

UI components from Wonderflow's Wanda design system

25 lines (24 loc) 662 B
import { jsx as _jsx } from "react/jsx-runtime"; import { Stack } from '../..'; import { StarMeter } from './star-meter'; const story = { title: 'Widgets/Star meter', component: StarMeter, args: { dimension: 'regular', value: 3.76, }, argTypes: { dimension: { options: ['small', 'regular', 'big'], control: { type: 'radio' }, }, }, }; export default story; const Template = args => _jsx(Stack, { children: _jsx(StarMeter, { ...args }) }); export const Default = Template.bind({}); export const CustomLabel = Template.bind({}); CustomLabel.args = { label: 'Hello there 👋', };