@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
33 lines (32 loc) • 916 B
TypeScript
import { BoxProps } from '@mui/material';
import { EditorProps } from '../../../Editor';
import { ComposerContentType } from '../../../../types/composer';
export interface ContentPostProps extends Omit<BoxProps, 'value' | 'onChange'> {
/**
* Value of the component
*/
value?: ComposerContentType | null;
/**
* Widgets to insert into the feed
* @default empty array
*/
error?: any;
/**
* All the inputs should be disabled?
* @default false
*/
disabled?: boolean;
/**
* Callback for change event on poll object
* @param value
* @default empty object
*/
onChange: (value: ComposerContentType) => void;
/**
* Props to spread into the editor object
* @default empty object
*/
EditorProps?: Omit<EditorProps, ''>;
}
declare const _default: (props: ContentPostProps) => JSX.Element;
export default _default;