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