ui-ingredients
Version:
Headless component library for Svelte powered by zag
20 lines (19 loc) • 581 B
TypeScript
import type { HTMLAttributes } from 'svelte/elements';
interface ElementIds {
root: string;
title: string;
description: string;
indicator: string;
}
export interface CreateAlertProps {
id: string;
ids?: ElementIds;
}
export interface CreateAlertReturn {
getRootProps(): HTMLAttributes<HTMLElement>;
getTitleProps(): HTMLAttributes<HTMLElement>;
getDescriptionProps(): HTMLAttributes<HTMLElement>;
getIndicatorProps(): HTMLAttributes<HTMLElement>;
}
export declare function createAlert(props: CreateAlertProps): CreateAlertReturn;
export {};