UNPKG

duoyun-ui

Version:

A lightweight desktop UI component library, implemented using Gem

21 lines (20 loc) 960 B
import { HTMLAttributes, RefAttributes } from 'react'; import { ForwardRefExoticComponent } from 'react'; import { DuoyunCollapsePanelElement } from '../elements/collapse'; export * from '../elements/collapse'; export type DyCollapsePanelProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunCollapsePanelElement> & { searchable?: DuoyunCollapsePanelElement['searchable']; summary?: DuoyunCollapsePanelElement['summary']; 'ontoggle'?: (event: CustomEvent<Parameters<DuoyunCollapsePanelElement['toggle']>[0]>) => void; toggleState?: DuoyunCollapsePanelElement['toggleState']; }; export type DyCollapsePanelExpose = {}; declare global { namespace JSX { interface IntrinsicElements { 'dy-collapse-panel': DyCollapsePanelProps; } } } export declare const DyCollapsePanel: ForwardRefExoticComponent<Omit<DyCollapsePanelProps, "ref"> & RefAttributes<DyCollapsePanelExpose>>; export default DyCollapsePanel;