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