@iobroker/adapter-react-v5
Version:
React components to develop ioBroker interfaces with react.
38 lines (37 loc) • 1.07 kB
TypeScript
import React, { Component } from 'react';
import type { InputProps } from '@mui/material/Input';
import type { ThemeType, Translate } from '../types';
interface SelectWithIconProps {
t: Translate;
lang: ioBroker.Languages;
themeType: ThemeType;
value?: string;
onChange: (id: string) => void;
disabled?: boolean;
list?: ioBroker.Object[] | Record<string, ioBroker.Object>;
different?: string | boolean;
label?: string;
fullWidth?: boolean;
className?: string;
style?: React.CSSProperties;
removePrefix?: string;
allowNone?: boolean;
inputProps?: InputProps['inputProps'];
dense?: boolean;
}
interface TextWithIconItem {
name: string;
value: string;
icon?: string;
color?: string;
}
interface SelectWithIconState {
list: TextWithIconItem[];
}
export declare class SelectWithIcon extends Component<SelectWithIconProps, SelectWithIconState> {
private readonly wordDifferent;
private timeout;
constructor(props: SelectWithIconProps);
render(): React.JSX.Element;
}
export {};