Form controls
Labels, fields, inputs, selection, and boolean controls.
Example
A representative composition rendered with the published package API.
Shown to workspace members.
This alias is already in use.
Time zone: UTC
Entered and enforced in UTC.
Options
The decisions most consumers need to make when adopting this family.
controlInput · Textarea · Select · SearchableSelect · DateTimeField · Checkbox · Switch
Choose from the type and number of values users must provide. Use DateTimeField instead of a native datetime-local input so the time zone is stated.
FormSelect empty valueplaceholder · nothing
An empty value with no matching option is no selection: the placeholder shows, or nothing. Do not add a disabled prompt option.
statedefault · disabled · invalid · required
Expose state through native attributes as well as styling.
| Option | Values or anatomy | Guidance |
|---|---|---|
control | Input · Textarea · Select · SearchableSelect · DateTimeField · Checkbox · Switch | Choose from the type and number of values users must provide. Use DateTimeField instead of a native datetime-local input so the time zone is stated. |
FormSelect empty value | placeholder · nothing | An empty value with no matching option is no selection: the placeholder shows, or nothing. Do not add a disabled prompt option. |
state | default · disabled · invalid · required | Expose state through native attributes as well as styling. |
Usage
Copy the package import and adapt the composition to product-owned content and state.
import { Checkbox, Field, FieldDescription, FieldError, FieldGroup } from "@conscia-labs/design-system";