ValyroUI Русская версия

Size Picker

Size selection: tiles or a scrolling row, out-of-stock states. Pro · Forms and input › Color, size and emoji

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add size-picker
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { SizePicker } from 'valyro-ui-pro';

Props

PropTypeDefault
options *SizeOption[]Sizes in order: "36", "M", "US 8.5".
valuestringSelected size (controlled); an empty string means none.
defaultValuestringInitial value when uncontrolled.
onValueChange(value: string) => voidCalled with the new value when it changes.
namestringName of the native radios, so the size submits with a form.
layout'scroll' | 'wrap''wrap'scroll: one row that scrolls sideways with faded edges; wrap: rows of tiles. Default wrap.
variant'box' | 'plain''box'box: tiles; plain: large bare numbers, the selected one bold (a product page). Default box.
size'sm' | 'md' | 'lg''md'Tile size. Default md.

Related components

Previous: Swatch Picker · Next: Emoji Picker · All Forms and input