Empty State
<zn-empty-state> | ZnEmptyState
Short summary of the component’s intended use.
<zn-empty-state caption="The Caption" description="The Description" type="primary" icon="check"> </zn-empty-state>
Examples
With Buttons
<zn-empty-state caption="The Caption" description="The Description" icon="check"> <zn-button-group> <zn-button>Button 1</zn-button> <zn-button>Button 2</zn-button> </zn-button-group> </zn-empty-state>
Padded
<zn-empty-state padded type="primary" caption="The Caption" description="The Description" icon="check"> <zn-button-group> <zn-button>Button 1</zn-button> <zn-button>Button 2</zn-button> </zn-button-group> </zn-empty-state>
Importing
If you’re using the autoloader or the traditional loader, you can ignore this section. Otherwise, feel free to use any of the following snippets to cherry pick this component.
To import this component from the CDN using a script tag:
<script type="module" src="https://cdn.jsdelivr.net/npm/@kubex/zinc@1.0.0/dist/components/empty-state/empty-state.js"></script>
To import this component from the CDN using a JavaScript import:
import 'https://cdn.jsdelivr.net/npm/@kubex/zinc@1.0.0/dist/components/empty-state/empty-state.js';
To import this component using a bundler:
import '@kubex/zinc/dist/components/empty-state/empty-state.js';
Slots
Name | Description |
---|---|
(default) | The default slot. |
example
|
An example slot. |
Learn more about using slots.
Events
Name | React Event | Description | Event Detail |
---|---|---|---|
zn-event-name |
|
Emitted as an example. | - |
Learn more about events.
Custom Properties
Name | Description | Default |
---|---|---|
--example |
An example CSS custom property. |
Learn more about customizing CSS custom properties.
Parts
Name | Description |
---|---|
base |
The component’s base wrapper. |
Learn more about customizing CSS parts.
Dependencies
This component automatically imports the following dependencies.
<zn-example>