blue
View on GitHub

Form Label

A form label provides a clear and accessible name for form inputs, helping users understand the purpose of each field.


Usage

Light
Blue
Zoho Puvi
<script>
	import { FormLabel } from 'deskblocks';
</script>

<FormLabel for="email">Field Label</FormLabel>

Mandatory label

Light
Blue
Zoho Puvi
<FormLabel required>Field Label</FormLabel>

Disabled label

Light
Blue
Zoho Puvi
<FormLabel disabled>Field Label</FormLabel>

Slots

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.