UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

23 lines (22 loc) 809 B
import { BoxProps } from '@mui/material'; import { ComposerContentType } from '../../../types/composer'; export interface AttributesProps extends Omit<BoxProps, 'value' | 'onChange' | 'onClick'> { /** * Value of the component */ value?: Omit<ComposerContentType, 'title' | 'html'> | null; /** * Callback for change event on attributes object * @param value * @default empty object */ onChange?: (value: Omit<ComposerContentType, 'title' | 'html'>) => void; /** * Callback for click event on single attribute * @param value * @default empty object */ onClick?: (attribute: 'categories' | 'event' | 'group' | 'addressing' | 'location') => void; } declare const _default: (props: AttributesProps) => JSX.Element; export default _default;