Skip to main content

Form Control

<sc-form-control></sc-form-control>

This component let users create an form control.

(form item)

Component Codex

Properties

PropertyDescriptionTypeDefault
helpHelp textstring
helpIdHelp idstring
inputIdInput id.string
labelInput label.string
labelIdInput label id.string
nameName for the input. Used for validation errors.string
requiredWhether the input is required.booleanfalse
showLabelShow the label.booleantrue
sizeSize of the label"large" | "medium" | "small"'medium'

Shadow Parts

PartDescription
form-controlThe elements base wrapper.
help-textHelp text.
inputThe input wrapper.
labelThe label.
tooltipTooltip
tooltip-textTooltip text.