Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
import React from 'react';
|
|
import type { DragHandleProps } from '../DraggableSortable/DraggableSortableItem/types.js';
|
|
import './index.scss';
|
|
import { CollapsibleProvider, useCollapsible } from './provider.js';
|
|
export { CollapsibleProvider, useCollapsible };
|
|
export type CollapsibleProps = {
|
|
actions?: React.ReactNode;
|
|
/**
|
|
* Components that will be rendered within the collapsible provider but after the wrapper.
|
|
*/
|
|
AfterCollapsible?: React.ReactNode;
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
collapsibleStyle?: 'default' | 'error';
|
|
/**
|
|
* If set to true, clicking on the collapsible header will not toggle the collapsible state.
|
|
* This is useful if the collapsible state is controlled externally (e.g. from a parent component or custom button).
|
|
*/
|
|
disableHeaderToggle?: boolean;
|
|
/**
|
|
* If set to true, the toggle indicator (chevron) on the right side of the header will be hidden.
|
|
*/
|
|
disableToggleIndicator?: boolean;
|
|
dragHandleProps?: DragHandleProps;
|
|
header?: React.ReactNode;
|
|
initCollapsed?: boolean;
|
|
isCollapsed?: boolean;
|
|
onToggle?: (collapsed: boolean) => Promise<void> | void;
|
|
};
|
|
export declare const Collapsible: React.FC<CollapsibleProps>;
|
|
//# sourceMappingURL=index.d.ts.map |