mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
33 lines
625 B
TypeScript
33 lines
625 B
TypeScript
import type { SvelteComponentTyped } from "svelte";
|
|
|
|
export type NotificationIconProps = {
|
|
/**
|
|
* Specify the kind of notification icon
|
|
* @default "error"
|
|
*/
|
|
kind?:
|
|
| "error"
|
|
| "info"
|
|
| "info-square"
|
|
| "success"
|
|
| "warning"
|
|
| "warning-alt";
|
|
|
|
/**
|
|
* Set the type of notification
|
|
* @default "toast"
|
|
*/
|
|
notificationType?: "toast" | "inline";
|
|
|
|
/**
|
|
* Specify the ARIA label for the icon
|
|
* @default undefined
|
|
*/
|
|
iconDescription: undefined;
|
|
};
|
|
|
|
export default class NotificationIcon extends SvelteComponentTyped<
|
|
NotificationIconProps,
|
|
Record<string, any>,
|
|
{}
|
|
> {}
|