Note
<zn-note> | ZnNote
Short summary of the component’s intended use.
<zn-note caption="The caption" date="11/10/24" body="The body" color="gray"></zn-note>
Examples
Using HTML
<zn-note color="gray"> <span slot="caption">The caption</span> <span slot="body">The body</span> <span slot="date"> <small>11/10/24</small> </span> </zn-note>
Changing Colour
<zn-note caption="The caption" date="11/10/24" body="I'm blue!" color="blue"></zn-note> <zn-note caption="The caption" date="11/10/24" body="I'm yellow!" color="yellow"></zn-note> <zn-note caption="The caption" date="11/10/24" body="I'm red!" color="red"></zn-note> <zn-note caption="The caption" date="11/10/24" body="I'm green!" color="green"></zn-note>
No Border Colour
<zn-note caption="The caption" date="11/10/24" body="The body"></zn-note>
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/note/note.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/note/note.js';
To import this component using a bundler:
import '@kubex/zinc/dist/components/note/note.js';
Slots
Name | Description |
---|---|
caption
|
The note’s caption. |
date
|
The note’s date. |
body
|
The note’s body. |
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>