Skip to main content

Validator API

Properties
NameTypeDefaultDescription
headerstringHeader of the validator. Use * characters to highlight text, e.g. 'lorem *highlighted* ipsum'. Accepts HTML — sanitize before use.
subjectstringSubject for the validator. Accepts HTML — sanitize before use.
subheaderstringSubheader of the validator.
statusenum: [success, error, warning, loading]Status of the validator.
actionstringAction label; fires the action event on click.
action-hrefstringURL to navigate to when the action is clicked.
action-typeenum: [link, button]linkDefines the type of the action element.
summarystringTitle for grouping multiple validators.
summary-valuestringValue for the summary indicator.
summary-typeenum: [info, success, error, warning]Type for the summary indicator.
header-sizeenum: [h2, h3, h4, h5, body]h2Controls the size of the summary title.
openedbooleanfalseSets the opened state of the component.
standalonebooleanfalseAdds a border around the component.
spacingenum: [compact]""Controls the spacing of the component.
Events
EventDescriptionReturns
actionFires when the action is clicked.
triggerFires when the component is opened or closed.{ detail: { opened: boolean } }