@senka-ai/ui
Version:
A modern, type-safe Svelte 5 UI component library with full theme support, accessibility standards, and robust state management patterns
27 lines • 1.17 kB
TypeScript
import type { BaseProps, ChildrenComponent } from '../../type/component';
/**
* ActionSheet component props interface
* A list of options that the user can select, usually placed at the bottom of the screen
*/
interface Props extends BaseProps, ChildrenComponent {
/** Whether the action sheet is open/visible @default false */
open?: boolean;
/** Function called when the action sheet should be closed */
onClose?: () => void;
/** Action sheet title */
title?: string;
/** Whether to show the close button @default true */
showCloseButton?: boolean;
/** Position of the action sheet @default 'bottom' */
position?: 'bottom' | 'top';
/** Animation speed @default 'normal' */
animationSpeed?: 'slow' | 'normal' | 'fast';
/** Whether clicking outside closes the sheet @default true */
closeOnOutsideClick?: boolean;
/** Whether pressing escape closes the sheet @default true */
closeOnEscape?: boolean;
}
declare const ActionSheet: import("svelte").Component<Props, {}, "">;
type ActionSheet = ReturnType<typeof ActionSheet>;
export default ActionSheet;
//# sourceMappingURL=ActionSheet.svelte.d.ts.map