components.label

label(label: string, component: Component, description: string) → Component

Create a labelled modal field wrapper.

Parameters:
  • label: The label text.

  • component: The wrapped component.

  • description: Optional description.