FieldFamily.field_legend
Server-rendered
Legend for a field_set/1.
The default :legend variant is sized for section titles. Use
variant={:label} when nesting fieldsets and you want the legend to align
with ordinary field labels.
Field legend
<.field_legend>Delivery method</.field_legend>
Label-sized legend
<.field_legend variant={:label}>Notification channel</.field_legend>
Attributes
| Name | Type | Default | Values | Global Includes |
|---|---|---|---|---|
class
|
:string |
— | — | — |
rest
|
:global |
— | — | — |
variant
|
:atom |
:legend
|
:legend
,
:label
|
— |
Slots
| Slot | Slot Attributes |
|---|---|
inner_block
Required
|
— |