import { Range } from './range'; import { DemoStory } from '../../demo/demo-types'; export const rangeDemo: DemoStory = { id: 'rangeDemo', text: 'Range', args: { min: 0, max: 100, vertical: false, range: true, showTicks: true, showTickLabels: true, tickStep: 20, disabled: false, }, argTypes: { min: { control: 'number' }, max: { control: 'number' }, vertical: { control: 'boolean' }, range: { control: 'boolean' }, showTicks: { control: 'boolean' }, showTickLabels: { control: 'boolean' }, tickStep: { control: 'number' }, disabled: { control: 'boolean' }, }, render: (args: any) => { const css = { display: 'flex', flexDirection: 'column', gap: '30px', padding: '20px', '.range-section': { display: 'flex', flexDirection: 'column', gap: '10px', }, '.section-title': { fontWeight: 'bold', fontSize: '16px', color: 'var(--primary-color)', }, }; return (
Interactive Range (Controlled by Panel)
{!args.vertical && ( <>
Standard Range (Single Thumb)
Range Selector (Dual Thumbs)
Disabled State
)} {args.vertical && (
Vertical Single
Vertical Dual
)}
); }, code: `import { Range } from 'lupine.components/component-pool'; // Single thumb // Dual thumbs (range) // Vertical `, };