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

The 'form' element template is designed to create structured, interactive forms in web applications. It is essential for collecting user input in a structured and accessible manner. This template is f

Key Features

  • HTML Attribute Integration: The template allows for the integration of custom HTML attributes, enhancing accessibility and styling capabilities.

  • Dynamic Children Elements: It supports a variety of child elements, enabling the creation of diverse forms with different input types and controls.

  • Customizable Classes: Utilize form_utility_classes for additional styling and functional customizations.

Customization

  • Inline Forms: The template supports inline forms through the is_inline variable, enabling a more compact layout.

  • Utility Classes: You can apply additional utility classes to modify the form's appearance and behavior, providing a high degree of customization.

Usage

{% include "radix:form" with {
  is_inline: true,
} %}
PreviousFigureNextForm: Element

Last updated 1 year ago

Was this helpful?