UNPKG

@iobroker/adapter-react-v5

Version:

React components to develop ioBroker interfaces with react.

26 lines (25 loc) 788 B
import React from 'react'; import { type IconSelectorIcon } from './IconSelector'; interface IconPickerProps { previewStyle?: React.CSSProperties; previewClassName?: string; /** Custom icon element. */ icon?: React.FC<{ style?: React.CSSProperties; }>; customStyles?: Record<string, React.CSSProperties>; customClasses?: Record<string, string>; /** The label. */ label?: string; /** The value. */ value?: any; /** Set to true to disable the icon picker. */ disabled?: boolean; /** The icon change callback. */ onChange: (icon: string) => void; icons?: IconSelectorIcon[]; onlyRooms?: boolean; onlyDevices?: boolean; } export declare function IconPicker(props: IconPickerProps): React.JSX.Element; export {};