/** * Side drawer anchored to the right edge of the viewport, for a record's detail. * * It does not block the page: clicking outside keeps it open, so clicking another * table row only swaps its content. It closes with the header's Close button or with * Escape while focus is inside it. Focus moves to the header title on open and returns * to whatever was focused before (typically the row that opened it) on close — rows * need to be focusable for that to work. * * Compose it with `TDrawerHeader` in the `header` slot, `TDrawerSection`s in the * default slot (the only part that scrolls) and an optional `TDrawerFooter`. */ export interface TDrawerProps { /** * Width step: `s` 540px, `m` 580px, `l` 660px. Grow it only when an inner table * doesn't fit — content never widens the drawer. * @defaultValue 's' */ size?: 's' | 'm' | 'l'; /** * Identifies the record on display. Changing it while open counts as a new open: * focus goes back to the title and the body scrolls to the top. */ contentKey?: string | number; } export interface TDrawerSlots { /** Required: fixed at the top, receives a `TDrawerHeader`, whose title names the drawer and holds Close. */ header: () => unknown; /** Takes the remaining height and is the only part that scrolls. Receives `TDrawerSection`s. */ default?: () => unknown; /** Fixed at the bottom. Receives a `TDrawerFooter`; not rendered when omitted. */ footer?: () => unknown; } declare const _default: typeof __VLS_export; export default _default; declare const __VLS_export: __VLS_WithSlots any; }, string, import("vue").PublicProps, Readonly & Readonly<{ "onUpdate:open"?: ((value: boolean) => any) | undefined; }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, TDrawerSlots>; type __VLS_WithSlots = T & { new (): { $slots: S; }; }; //# sourceMappingURL=TDrawer.vue.d.ts.map