@mattilsynet/designsystem-svelte
Version:
Design system for Mattilsynet
21 lines (20 loc) • 562 B
TypeScript
import type { Snippet } from 'svelte';
interface Props {
id?: string;
loadJs?: boolean;
title: string;
headerTag?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
theme?: 'bordered' | 'no-border';
icon?: string;
headerClass?: string;
panelClass?: string;
startOpen?: boolean;
chapter?: string;
class?: string;
children?: Snippet;
onOpen?: () => void;
onClose?: () => void;
}
declare const Disclosure: import("svelte").Component<Props, {}, "">;
type Disclosure = ReturnType<typeof Disclosure>;
export default Disclosure;