carbon-components-svelte
Version:
Svelte implementation of the Carbon Design System
34 lines (29 loc) • 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>,
{}
> {}