() => {return (<EmptyStateheader="This is an empty state."caption="Use it to provide information when no dynamic content exists. This might end up being two lines long sometimes."submitAction={{ name: 'Submit', onClick: () => { console.log("in Submit") } }}secondaryAction={{ name: 'Cancel', onClick: () => { console.log("in Cancel") } }}/>);};
Prop | Type | Default | Description |
---|---|---|---|
header | string | Displays the header text; optional. | |
caption | string | Displays the caption text; optional. | |
submitAction | object | The "name" key displays the label of the primary button. "onClick" handles the onClick event of submitAction. If "name" key is not provided, the default text displayed will be "Submit"; optional | |
secondaryAction | object | The "name" key displays the label of the secondary button. "onClick" handles the onClick event of secondaryAction. If "name" key is not provided, the default text displayed will be "Cancel"; optional |
() => {return (<EmptyStateheader="This is an empty state."caption="Use it to provide information when no dynamic content exists. This might end up being two lines long sometimes."submitAction={{ name: 'Submit', onClick: () => { console.log("in Submit") } }}/>);};
() => {return (<EmptyStateheader="This is an empty state."caption="Use it to provide information when no dynamic content exists. This might end up being two lines long sometimes."/>);};
() => {return (<EmptyStatecaption="We couldn’t find anyone who matched your search."/>);};
() => {return (<EmptyStatecaption="Enter a name to search"/>);};