import snippets from './snippets'; import { AntdIconSetter } from '../_setters'; export default { snippets, componentName: 'Icon', title: 'icon', category: 'General', props: [ { name: 'className', title: { label: 'Set the style name of the icon', tip: 'Set the style name of the icon' }, propType: 'string', }, { name: 'style', title: { label: 'Set the style of the icon, such as `fontSize` and `color`', tip: 'Set the style of the icon, such as `fontSize` and `color`', }, propType: 'object', }, { name: 'type', description: 'icon', propType: 'string', setter: AntdIconSetter, }, { name: 'size', description: 'size', propType: 'number', defaultValue: 20, }, { name: 'color', description: 'color', propType: 'string', setter: 'ColorSetter', }, { name: 'rotate', title: { label: 'rotatioon angle', tip: 'Icon rotation angle', }, propType: 'number', defaultValue: 0, }, { name: 'spin', title: { label: 'rotation animation', tip: 'Is there a rotation animation?' }, propType: 'bool', defaultValue: false, }, { name: 'onClick', title: { label: 'Click callback', tip: 'Callback when button is clicked' }, propType: 'func', }, ], configure: { supports: { style: true } }, };