react-wired-elements
Version:
Wired Elements as React components. TypeScript types included.
34 lines (33 loc) • 930 B
TypeScript
import * as React from 'react';
import { BaseProps } from './types';
export interface WiredComboProps extends BaseProps {
/**
* Disable the combo.
* @default false
*/
disabled?: boolean;
/**
* Value of the selected wired-item.
*/
value?: any;
/**
* Background color of the dropdown when combo selector is open.
* @default "white"
*/
popupBgColor?: string;
/**
* Background color of the selected item.
* @default "white"
*/
selectedBgColor?: string;
/**
* Event fired when an item is selected by the user.
* @default false
*/
onSelect?(e: CustomEvent): void;
/**
* The children.
*/
children?: React.ReactNode;
}
export declare const WiredCombo: ({ children, disabled, value, onSelect, popupBgColor, selectedBgColor, className, style, }: WiredComboProps) => JSX.Element;