For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Resources
Get started
ReferenceChangelog
ReferenceChangelog
  • Flowkit v2.0.0
    • Components
      • Cards
      • Buttons
      • Tag
      • Dropdown
      • Accordion
      • Images
      • Rich Text
      • Forms
      • Tabs
      • Slider
      • Divider
    • Utility Classes
LogoLogo
Resources
Get started
On this page
  • Class Naming
  • Elements
  • Surface Modifiers
Flowkit v2.0.0Components

Forms

Was this page helpful?
Previous

Tabs

Next
Built with

Class Naming

Forms consist of modular components with consistent styling patterns. Each element within a form, like labels, fields, toggles, and messages, is styled using reusable classes and combo modifiers to adapt to different contexts (inverse, accents, etc.).

Form Components

Element ClassPurpose
input_fieldFor basic text fields
input_field is-selectFor select fields
input_field is-text-areaFor multiline input
checkboxCustom-styled checkbox
radioCustom-styled radio
buttonFor submitting the form
form_success-messageVisible after submission
form_error-messageShows validation errors

Elements

Input elements

  • input_label
  • input - wrapper of the label and input field

Checkbox elements:

  • checkbox_toggle
  • checkbox_label

Radio elements:

  • radio_toggle
  • radio_label

Surface Modifiers

To ensure proper contrast and accessibility, surface modifiers are applied as combo classes to individual form elements and following naming convention element on-surface

Surface options: on-inverse, on-accent-primary, on-accent-secondary, on-accent-tertiary

Example: checkbox_toggle on-inverse