mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
chore: add more prop annotations
This commit is contained in:
parent
8c1ffd4cb0
commit
773b18d314
75 changed files with 877 additions and 137 deletions
|
@ -1,6 +1,11 @@
|
|||
<script>
|
||||
export let notificationType = "inline";
|
||||
export let kind = "error"; // "error" | "info" | "info-square" | "success" | "warning" | "warning-alt"
|
||||
|
||||
/**
|
||||
* Set the kind of notification
|
||||
* @type {"error" | "info" | "info-square" | "success" | "warning" | "warning-alt"} [kind="error"]
|
||||
*/
|
||||
export let kind = "error";
|
||||
export let role = "alert";
|
||||
export let title = "provide a title";
|
||||
export let subtitle = "";
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
<script>
|
||||
export let notificationType = "toast"; // "toast" | "inline"
|
||||
/**
|
||||
* Set the type of notification
|
||||
* @type {"toast" | "inline"} [notificationType="toast"]
|
||||
*/
|
||||
export let notificationType = "toast";
|
||||
export let iconDescription = "close icon";
|
||||
export let renderIcon = Close20;
|
||||
export let title = undefined;
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
<script>
|
||||
export let kind = "error";
|
||||
|
||||
/**
|
||||
* Set the type of notification
|
||||
* @type {"toast" | "inline"} [notificationType="toast"]
|
||||
*/
|
||||
export let notificationType = "toast";
|
||||
|
||||
export let iconDescription = "closes notification";
|
||||
|
||||
import CheckmarkFilled20 from "carbon-icons-svelte/lib/CheckmarkFilled20";
|
||||
|
@ -16,7 +22,7 @@
|
|||
info: InformationFilled20,
|
||||
success: CheckmarkFilled20,
|
||||
warning: WarningFilled20,
|
||||
"warning-alt": WarningAltFilled20
|
||||
"warning-alt": WarningAltFilled20,
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue