Form Control
<sc-form-control></sc-form-control>
This component let users create an form control.
- Preview
- Code
<sc-form-control label="Label" help="Help text">(form item)</sc-form-control>
Component Codex
Properties
Property | Description | Type | Default |
---|---|---|---|
help | Help text | string | |
helpId | Help id | string | |
inputId | Input id. | string | |
label | Input label. | string | |
labelId | Input label id. | string | |
name | Name for the input. Used for validation errors. | string | |
required | Whether the input is required. | boolean | false |
showLabel | Show the label. | boolean | true |
size | Size of the label | "large" | "medium" | "small" | 'medium' |
Shadow Parts
Part | Description |
---|---|
form-control | The elements base wrapper. |
help-text | Help text. |
input | The input wrapper. |
label | The label. |
tooltip | Tooltip |
tooltip-text | Tooltip text. |