semantic-ui-react
Version:
The official Semantic-UI-React integration.
32 lines (23 loc) • 867 B
TypeScript
import * as React from 'react';
import { ButtonProps } from '../../elements/Button';
import { SemanticShorthandCollection } 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;
/**
* 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;