import type { ReactElement, HTMLAttributes, Ref } from "react"; import type SlDetailsElement from "@shoelace-style/shoelace/dist/components/details/details.js"; import { SlShowEvent, SlAfterShowEvent, SlHideEvent, SlAfterHideEvent, } from "../events"; export type { SlDetailsElement }; export type SlDetailsShowEvent = SlShowEvent; export type SlDetailsAfterShowEvent = SlAfterShowEvent; export type SlDetailsHideEvent = SlHideEvent; export type SlDetailsAfterHideEvent = SlAfterHideEvent; export interface SlDetailsProps extends HTMLAttributes { ref?: Ref; /** * Indicates whether or not the details is open. You can toggle this attribute to show and hide the details, or you * can use the `show()` and `hide()` methods and this attribute will reflect the details' open state. */ open?: boolean; /** * The summary to show in the header. If you need to display HTML, use the `summary` slot instead. */ summary?: string; /** * Disables the details so it can't be toggled. */ disabled?: boolean; /** * Emitted when the details opens. */ onSlShow?: (event: SlDetailsShowEvent) => void; /** * Emitted when the details opens. */ onSlShowCapture?: (event: SlDetailsShowEvent) => void; /** * Emitted after the details opens and all animations are complete. */ onSlAfterShow?: (event: SlDetailsAfterShowEvent) => void; /** * Emitted after the details opens and all animations are complete. */ onSlAfterShowCapture?: (event: SlDetailsAfterShowEvent) => void; /** * Emitted when the details closes. */ onSlHide?: (event: SlDetailsHideEvent) => void; /** * Emitted when the details closes. */ onSlHideCapture?: (event: SlDetailsHideEvent) => void; /** * Emitted after the details closes and all animations are complete. */ onSlAfterHide?: (event: SlDetailsAfterHideEvent) => void; /** * Emitted after the details closes and all animations are complete. */ onSlAfterHideCapture?: (event: SlDetailsAfterHideEvent) => void; } /** * Details show a brief summary and expand to show additional content. */ export default function SlDetails( props: SlDetailsProps, ): ReactElement;