x
1
2
3
<label class="midwest-label " for=""> default content</label>1
<%= midwest_form_label(params[:label] || "default content", as: params[:as]&.to_sym || :label) %>Default
This is the minimum code needed to make a label.
| Param | Description | Input |
|---|---|---|
|
— |
|
|
|
The list of possible as options. |
|
No assets to display.
Add a .js or .css file alongside the component to see it here.
Figma embed for Label/default
Annotate a preview to embed its Figma design here:
@figma "https://figma.com/..."