semantic-ui-react
Version:
The official Semantic-UI-React integration.
30 lines (21 loc) • 700 B
TypeScript
import * as React from 'react';
export interface AccordionTitleProps {
[key: string]: any;
/** Whether or not the title is in the open state. */
active?: boolean;
/** An element type to render as (string or function). */
as?: any;
/** Primary content. */
children?: React.ReactNode;
/** Additional classes. */
className?: string;
/**
* Called on click.
*
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onClick?: (event: React.MouseEvent<HTMLDivElement>, data: AccordionTitleProps) => void;
}
declare const AccordionTitle: React.ComponentClass<AccordionTitleProps>;
export default AccordionTitle;