Back to Component Browser

Field

Quartz

lib/quartz/components/Field/index.ts

Preview
Personal Info

Import

import { Field } from '@/lib/quartz';

Props (5)

NameTypeRequiredDefaultDescription
descriptionReactNodeoptionalThe description text for the `<Field>` that should be displayed under a label.
invalidTextstringoptionalError text that will be displayed in error styling. When present, `aria-invalid` will be set on the underlying `<input>`
renderInput(renderProps: InputRenderProps) => ReactNoderequiredA function which expected a ReactNode. This is where you should render your input....
inputIdstringoptionalThe `id` of the input. If none is provided, it will be autogenerated.
labelVariantLabelVariantoptionalprimaryWhether the `labelPrimary` or `labelSecondary` typography preset should be used....

Usage

Not used in any projects yet.