@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
51 lines (50 loc) • 1.56 kB
TypeScript
import { BoxProps } from '@mui/material';
import { EditorProps } from '../../../Editor';
import { ComposerContentType } from '../../../../types/composer';
export interface ContentDiscussionProps 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;
/**
* Value indicating the initial height
* @default 370
*/
defaultInitialMaxHeightContentEditor?: number;
/**
* Value indicating the amount of space to take into account to dynamically
* calculate the max-height of the editor content (div.content)
* Default is :
* 90 (dialog topbar + bottombar) + 55 (editor toolbar) + 45 (selector content type) + 20 (title padding top/bottom)
* @default 210
*/
defaultExtraSpaceContentEditor?: number;
/**
* Props indicate if the content switch button is visible
* @default true
*/
isContentSwitchButtonVisible?: boolean;
/**
* Props to spread into the editor object
* @default empty object
*/
EditorProps?: EditorProps;
}
declare const _default: (props: ContentDiscussionProps) => JSX.Element;
export default _default;