UI Library

Prop Type Default Value Notes
classNamestring?'text-slate-200'
Classes for the display label.
copyablebooleanfalse
Adds a copy button beside the label.
maxWidthnumber?480
Maximum input width in px; the field also stops at the viewport edge.
ratiosFieldRatioOverrides?—
Partial override of the label and field ratios (font, radius, paddings); both line boxes follow the font.
size'xs' | 'sm' | 'md' | 'lg' | 'xl' | number'md'
Text size for the label and the input.
textstring—
Displayed value; double-click or use the edit button to change it (required); the eye resets to the default.
onActivate() => void——Fires when the field enters edit mode.
onChange(text: string) => void | boolean——Called with the committed value; return false to reject it and keep editing.