npm install @equinor/fusion-wc-formfield
<fwc-formfield label='My label' nowrap>
<fwx-checkbox />
</fwc-formfield>
Name | Description |
---|---|
default | The input element that this form field provides a label for. |
Name | Type | Description |
---|---|---|
label |
string |
The text to display for the label and sets a11y label on input. (visually overriden by slotted label) |
alignEnd |
boolean |
Align the component at the end of the label. |
spaceBetween |
boolean |
Add space between the component and the label as the formfield grows. |
nowrap |
boolean |
Prevents the label from wrapping and overflow text is ellipsed. |
None
None