<kern-mac-input>
MAC address field, form-associated. Accepts every common notation (C82B961A3F00, c8:2b:…, c8-2b-…, c82b.961a.3f00) and normalises on Enter or when leaving the field to format and letter-case; value and the form value are the normalised form.
Examples
Any notation in, one notation out
Accepts C82B961A3F00, c8:2b:…, c8-2b-… or c82b.961a.3f00 and normalises on Enter or when leaving the field. format (colon, dash, dot, plain) and letter-case set the output.
Required, read-only and small
required blocks an empty form submission; readonly and disabled work as on kern-input.
Properties
ariaLabelTextstring | undefined
Accessible name when there is no visible label.
disabledboolean
errorstring | undefined
format"colon" | "dash" | "dot" | "plain"
Notation of value: C8:2B:… (colon), C8-2B-… (dash), c82b.961a.3f00 (dot), C82B961A3F00 (plain).
hintstring | undefined
labelstring | undefined
labelInvalidstring | undefined
letterCase"lower" | "upper"
namestring | undefined
noImplicitSubmitboolean
Enter does not submit the surrounding form.
placeholderstring | undefined
Defaults to an example in format.
readonlyboolean
requiredboolean
size"md" | "sm"
valuestring
Normalised MAC address; empty when none.
Events
kernChangeCustomEvent<{ value: string; }>
When typed text is applied, with the normalised value (empty when cleared).
kernInputCustomEvent<{ value: string; }>
On every keystroke, with the raw text.
Methods
setFocus()setFocus() => Promise<void>
Focuses the native input.
CSS parts
control