Form Label
A form label provides a clear and accessible name for form inputs, helping users understand the purpose of each field.
Usage
<script> import { FormLabel } from 'deskblocks'; </script> <FormLabel for="email">Field Label</FormLabel>
Mandatory label
<FormLabel required>Field Label</FormLabel>
Disabled label
<FormLabel disabled>Field Label</FormLabel>
Slots
default
Props
for | string | undefined | Associates the label with a specific form element by matching the element’s ID. |
required | boolean | false | Indicates that the associated form field is required. |
disabled | boolean | false | Indicates that the associated form field is disabled. |
class | string | undefined | Custom CSS class name for additional styling. |