Input
Text input, select, toggle, and checkbox. Berkeley Mono for input values (data font). Labels always in mono. All states demonstrated live.
Text Input
Select
Toggle
Checkbox
Label
Standalone form label for complex layouts where the label is not built into a form component. Uses mono label font.
Textarea
Multi-line text input. Values displayed in Berkeley Mono (data font). Resizable vertically.
File Upload
Drag-and-drop zone for file selection. Validates accept types and max size, then emits valid files via callback. Does not handle uploads — parent owns that logic.
File Upload Item
Per-file progress row. Parent controls all state — this is a pure display component. Use in a list below a FileUpload zone.
Code Editor
CodeMirror 6 wrapper with SQL, Python, and JSON syntax highlighting. Themed with DS tokens. Supports line numbers, readonly mode, and configurable height.
TOKEN REFERENCE
Inputs use component tokens from components.css:
--input-font: var(--type-data-font) (Berkeley Mono)--input-radius: var(--radius-sm) (2px)--input-border: var(--elevation-border)--input-label-font: var(--type-label-font)--toggle-bg-on: var(--color-accent)--checkbox-bg-checked: var(--color-accent)--textarea-min-height: 80px--textarea-padding: var(--space-sm)--fileupload-border: dashed var(--color-border)--fileupload-border-dragging: solid var(--color-accent)--fileupload-bg-dragging: var(--color-accent-subtle)--fileupload-item-border: var(--elevation-border)--fileupload-item-error-color: var(--color-destructive)--fileupload-item-complete-color: var(--color-success)