refactor(ui): update shared components and add ControlGroup, SidebarContainer

This commit is contained in:
Ilia Mashkov
2026-03-02 22:19:35 +03:00
parent 13818d5844
commit 0dd08874bc
33 changed files with 927 additions and 203 deletions
+31 -1
View File
@@ -10,18 +10,48 @@ import {
} from 'bits-ui';
interface Props {
/**
* Slider value
* @default 0
*/
value?: number;
/**
* Minimum value
* @default 0
*/
min?: number;
/**
* Maximum value
* @default 100
*/
max?: number;
/**
* Step increment
* @default 1
*/
step?: number;
/**
* Disabled state
* @default false
*/
disabled?: boolean;
/**
* Slider orientation
* @default 'horizontal'
*/
orientation?: Orientation;
/**
* Format the displayed value label.
* Value formatter
* @default (v) => v
*/
format?: (v: number) => string | number;
/**
* Value change callback
*/
onValueChange?: (v: number) => void;
/**
* CSS classes
*/
class?: string;
}