Component docs
Loading
import { DateField } from "@pixxl-tools/components";
// In Server Components:
import { DateField } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
clearLabel | string | "Clear" from the catalog | Accessible name of the clear button (default "Clear" from the catalog). |
invalid | boolean | — | Marks the control invalid (aria-invalid); FormField sets it from error. |
leading | ReactNode | — | Content before the main content (icon, prefix). |
onClear | () => void | — | Shows a clear button while the field has a value; called when it is pressed. |
onValueChange | (value: string, event: ChangeEvent<HTMLInputElement>) => void | — | Called with the new value (only when it changes). |
size | ComponentSize | — | Size from the shared scale (xs, sm, md, lg). |
trailing | ReactNode | — | Content after the main content (icon, suffix). |
clearLabeldefault "Clear" from the catalogstring
Accessible name of the clear button (default "Clear" from the catalog).
invalidboolean
Marks the control invalid (aria-invalid); FormField sets it from error.
leadingReactNode
Content before the main content (icon, prefix).
onClear() => void
Shows a clear button while the field has a value; called when it is pressed.
onValueChange(value: string, event: ChangeEvent<HTMLInputElement>) => void
Called with the new value (only when it changes).
sizeComponentSize
Size from the shared scale (xs, sm, md, lg).
trailingReactNode
Content after the main content (icon, suffix).
<DateField />