Skip to content
Form drawer with validation, light
Light
Form drawer with validation, dark
Dark

Every state

  • Form drawer with validation, default, light
    Form drawer with validation, default, dark

    default

  • Form drawer with validation, focus, light
    Form drawer with validation, focus, dark

    focus

  • Form drawer with validation, open, light
    Form drawer with validation, open, dark

    open

  • Form drawer with validation, focus-field, light
    Form drawer with validation, focus-field, dark

    focus-field

  • Form drawer with validation, errors, light
    Form drawer with validation, errors, dark

    errors

  • Form drawer with validation, partly-valid, light
    Form drawer with validation, partly-valid, dark

    partly-valid

  • Form drawer with validation, filled, light
    Form drawer with validation, filled, dark

    filled

Props

PropTypeDefaultWhat it does
idstring"drawer-form"Id prefix; field ids are <id>-<field>.
openLabelstring"Delivery details"Trigger text.
titlestring"Delivery details"Drawer heading.
descriptionstring–Line under the heading.
submitLabelstring"Use these details"Submit button text.
emptyErrorsRecord<FieldName, string>–Error under a required field left empty.
invalidErrorsPartial<Record<FieldName, string>>–Error under a filled field that fails its check.
defaultValuesPartial<DrawerFormValues>{}Starting values.
onSubmit(values: DrawerFormValues) => void–Called when every field passes; the drawer closes after.
openboolean–The drawer is open (controlled).
defaultOpenboolean–Opens the drawer on mount (previews and sheets).
onOpenChange(open: boolean) => void–Called when the drawer opens or closes.
containedboolean–Draws the panel inside the nearest relative parent instead of fixed over the page. For previews and sheets; leave off on a real page.
classNamestring–Extra classes on the wrapper.

More drawers

All 4
drawer-02 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans