ShadcnUI.Components.Forms.Label (shadcn_ui v1.0.0)

Copy Markdown View Source

Native label text with a protected target and explicit requirement indicators.

Summary

Functions

Renders a native label associated with one explicit control ID.

Functions

label(assigns)

Renders a native label associated with one explicit control ID.

Attributes

  • id (:string) (required)
  • for (:string) (required)
  • required (:boolean) - Defaults to false.
  • optional (:boolean) - Defaults to false.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)