@tomino/dynamic-form-semantic-ui
Version:
Semantic UI form renderer based on dynamic form generation
31 lines • 806 B
JavaScript
import { Comment } from './comment_view';
import { propGroup, boundProp } from '../editor/editor_common';
import { colors } from './enums';
export const CommentEditor = {
Component: Comment,
title: 'Comment',
control: 'Comment',
icon: 'comment',
props: propGroup('Comment', {
content: boundProp(),
header: boundProp({
default: 'Comment'
}),
icon: boundProp({
default: 'comments outline'
}),
color: boundProp({
default: 'yellow',
control: 'Select',
props: {
options: colors
}
})
}),
defaultProps: {
header: 'Comment',
icon: 'comments outline',
color: 'yellow'
}
};
//# sourceMappingURL=comment_editor.js.map