semantic-ui-react
Version:
The official Semantic-UI-React integration.
44 lines (31 loc) • 1.13 kB
TypeScript
import * as React from 'react'
import { IconProps } from '../../elements/Icon'
import { SemanticShorthandContent, SemanticShorthandItem } from '../../generic'
export interface AccordionTitleProps extends StrictAccordionTitleProps {
[key: string]: any
}
export interface StrictAccordionTitleProps {
/** An element type to render as (string or function). */
as?: any
/** Whether or not the title is in the open state. */
active?: boolean
/** Primary content. */
children?: React.ReactNode
/** Additional classes. */
className?: string
/** Shorthand for primary content. */
content?: SemanticShorthandContent
/** Shorthand for Icon. */
icon?: SemanticShorthandItem<IconProps>
/** AccordionTitle index inside Accordion. */
index?: number | 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