Drupal Radix Theme
  • Introduction
    • Overview & Support
  • Installation
    • Requirements
    • Getting Started
    • Setup with ddev
  • Understanding Radix
    • Individual files and directories
    • Bootstrap Build
    • Bootswatch
  • Working with the components
    • Components: Intro
    • Components: A deep dive
    • An example component
    • The drupal-radix-cli
    • Copy and modify a component
  • Components
    • Accordion
    • Alerts
    • Badge
    • Block
    • Buttons
    • Button Group
    • Breadcrumb
    • Card
    • Carousel
    • Close button
    • Comment
    • Collapse
    • Details
    • Dropdown menu
    • Field
    • Field Comment
    • Fieldset
    • Figure
    • Form
    • Form: Element
    • Form Element Label
    • Form Element: Radio Checkbox
    • Heading
    • HTML
    • Image
    • Input
    • List group
    • Local Tasks
    • Media
    • Modal
    • Nav
    • Nav Item
    • Navbar
    • Navbar Brand
    • Node
    • Offcanvas
    • Page
    • Page: Content
    • Page: Footer
    • Page: Navigation
    • Page: Title
    • Pagination
    • Progress
    • Radios
    • Region
    • Select
    • Spinners
    • Table
    • Taxonomy
    • Textarea
    • Toasts
    • Tooltips
    • User
    • Views: view
    • Views: view--grid
    • Views: view--table
    • Views: view--unformatted
  • Misc
    • Migration and upgrading
    • Roadmap
    • Credits & Contributions
Powered by GitBook
On this page
  • Key Features
  • Customization
  • Usage

Was this helpful?

  1. Components

Form: Element

A form element is a component that is used to collect user input. It is a wrapper around the native HTML form elements.

Key Features

  • Versatile HTML Attributes: Enables the inclusion of custom HTML attributes for the form element container.

  • Error Handling: Displays any errors associated with the form element, enhancing user feedback and interaction.

  • Prefix and Suffix: Supports optional prefix and suffix for the form element, allowing for additional contextual information or styling.

  • Label and Description Management: Offers multiple display options for labels and descriptions, including visibility settings for screen readers.

  • Required Field Indicator: Includes a marker for required fields, improving form usability and user guidance.

  • Disabled State Support: Allows for the form element to be marked as disabled.

  • Customizable Classes: Incorporates form_element_utility_classes for additional styling options.

Customization

  • Label and Description Settings: Customize the position and visibility of labels and descriptions to suit different form layouts and accessibility needs.

  • Prefix/Suffix Addition: Add contextual prefixes or suffixes to the form element for enhanced user understanding.

  • Error Styling: Style the error messages to align with your application's design language.

Usage

{% include "radix:form-element" %}
PreviousFormNextForm Element Label

Last updated 1 year ago

Was this helpful?