UNPKG

@grafana/ui

Version:
22 lines (21 loc) 844 B
import { ReactNode } from 'react'; export interface Props { label: ReactNode; isOpen: boolean; /** Callback for the toggle functionality */ onToggle?: (isOpen: boolean) => void; children: ReactNode; className?: string; contentClassName?: string; loading?: boolean; labelId?: string; headerDataTestId?: string; contentDataTestId?: string; unmountContentWhenClosed?: boolean; } /** * A simple container for enabling collapsing/expanding of content. * * https://developers.grafana.com/ui/latest/index.html?path=/docs/layout-collapsablesection--docs */ export declare const CollapsableSection: ({ label, isOpen, onToggle, className, contentClassName, children, labelId, loading, headerDataTestId, contentDataTestId, unmountContentWhenClosed, }: Props) => import("react/jsx-runtime").JSX.Element;