semantic-ui-react
Version:
The official Semantic-UI-React integration.
36 lines (25 loc) • 961 B
TypeScript
import * as React from 'react'
import { ButtonProps } from '../../elements/Button'
import { SemanticShorthandCollection, SemanticShorthandContent } from '../..'
export interface ModalActionsProps {
[key: string]: any
/** An element type to render as (string or function). */
as?: any
/** Array of shorthand buttons. */
actions?: SemanticShorthandCollection<ButtonProps>
/** Primary content. */
children?: React.ReactNode
/** Additional classes. */
className?: string
/** Shorthand for primary content. */
content?: SemanticShorthandContent
/**
* onClick handler for an action. Mutually exclusive with children.
*
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All item props.
*/
onActionClick?: (event: React.MouseEvent<HTMLAnchorElement>, data: ButtonProps) => void
}
declare const ModalActions: React.ComponentClass<ModalActionsProps>
export default ModalActions