Label
A caption naming or describing a form element.
Code
<script lang="ts">
import { Label } from '@geoffcox/sterling-svelte';
</script>
<Label vertical="undefined">sterling-svelte</Label>
Members
| Property Name | Type | Default | Comment |
---|
| forwardClick | string | false |
| message | string | Snippet | '' |
| required | string | false |
| requiredIndicator | string | Snippet | '' |
| requiredReason | string | Snippet | '' |
| text | string | Snippet | '' |
Considerations
- An optional message and status can provide information to the user about their value.
- The required property and requiredReason indicate the user must fill in a value and why.
- Includes HTMLLabelElement props, events, and methods.
Anatomy
label (<label>)
text (string | Snippet)
content (<div>)
children (Snippet)
message (string | Snippet)
tooltip (<Tooltip>)
required (<div>)
requiredIndicator (string | Snippet)
tip (ToolTip.tip)
requiredReason (string | Snippet)