Label And Input
Type variations
Dark theme variations
Defines the appearance on dark mode.
Field group (pre-title + quantity buttons)
Add an optional pre-title text (ex: a price) before any type of fields.
Add and optional minus/plus quantity buttons after the number field types (reusing the quantity selector‘s buttons).
€ 500
€ 50
List of arguments for label and input
| Argument | Type | Description | Possible Values |
|---|---|---|---|
| type | string | Defines the label of the field (mandatory even if label is hidden). | text, number, tel, mail, password |
| label | string | Defines the label of the field (mandatory even if label is hidden). | — |
| label-slug | string | Defines the label that will be used for the 'name', the 'for' and the 'id' attributes linking the label and the input. | — |
| theme | string | Specifies the theme of the component. | light, dark |
| placeholder | string | Defines the placeholder. | — |
| custom-attributes | string | Defines any other attributes added to the input (ex: pattern). | — |
| pre-title | string | Optional text (ex: a price) displayed before the field, to reproduce the Figma 'Field group' (shared) composition. | — |
| quantity-buttons | boolean | When true, adds the quantity selector's minus/plus buttons after the field. | — |
| skin | array | Defines the skin of the minus/plus buttons shown when 'quantity-buttons' is enabled. | primary, secondary |