mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
chore: complete first pass of apply jsdoc annotations to component props
This commit is contained in:
parent
566a281d81
commit
f30755b237
97 changed files with 2327 additions and 259 deletions
|
@ -1,8 +1,27 @@
|
|||
<script>
|
||||
export let notificationType = "toast"; // "toast" | "inline"
|
||||
export let title = "title";
|
||||
/**
|
||||
* Set the type of notification
|
||||
* @type {"toast" | "inline"} [notificationType="toast"]
|
||||
*/
|
||||
export let notificationType = "toast";
|
||||
|
||||
/**
|
||||
* Specify the title text
|
||||
* @type {string} [title="Title"]
|
||||
*/
|
||||
export let title = "Title";
|
||||
|
||||
/**
|
||||
* Specify the subtitle text
|
||||
* @type {string} [subtitle=""]
|
||||
*/
|
||||
export let subtitle = "";
|
||||
export let caption = "caption";
|
||||
|
||||
/**
|
||||
* Specify the caption text
|
||||
* @type {string} [caption="Caption"]
|
||||
*/
|
||||
export let caption = "Caption";
|
||||
</script>
|
||||
|
||||
{#if notificationType === 'toast'}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue