docs(combo-box): add invalid state example

This commit is contained in:
Eric Liu 2021-02-17 10:35:17 -08:00
commit 45cab56877

View file

@ -59,6 +59,15 @@ items={[
{id: "2", text: "Fax"} {id: "2", text: "Fax"}
]} /> ]} />
### Invalid state
<ComboBox invalid invalidText="Secondary contact method must be different from the primary contact" titleText="Contact" placeholder="Select contact method"
items={[
{id: "0", text: "Slack"},
{id: "1", text: "Email"},
{id: "2", text: "Fax"}
]} />
### Warning state ### Warning state
<ComboBox warn warnText="This contact method is not associated with your account" titleText="Contact" placeholder="Select contact method" <ComboBox warn warnText="This contact method is not associated with your account" titleText="Contact" placeholder="Select contact method"