fwt-internship-uikit
Version:
36 lines (35 loc) • 811 B
TypeScript
import { FC } from 'react';
import './SimpleBar.scss';
declare type TOption = {
id: number;
name: string;
};
export interface ISelect {
/**
* Specify an optional className to be applied to the select box
*/
className?: string;
/**
* Specify whether the control is disabled
*/
disabled: boolean;
/**
* Provide the contents of your Select
*/
options: TOption[];
/**
* Current theme
*/
isDarkTheme: boolean;
/**
* The value of the `<select>`
*/
value: string;
/**
* The callback function that is called each time the value of
* the underlying `<input>` changes
*/
onChange: (name: string) => void;
}
declare const Select: FC<ISelect>;
export default Select;