react-wired-elements
Version:
Wired Elements as React components. TypeScript types included.
39 lines (38 loc) • 1.1 kB
TypeScript
import * as React from 'react';
import { BaseProps } from './types';
export interface WiredItemProps extends BaseProps {
/**
* The value property used by the WiredCombo and WiredListBox components
*/
value?: any;
/**
* The selected state of the item.
* @default false
*/
selected?: boolean;
/**
* The color text when not selected.
* @default black
*/
color?: string;
/**
* The background color when selected.
* @default black
*/
selectedBgColor?: string;
/**
* The text color when selected.
* @default white
*/
selectedColor?: string;
/**
* An event that fires when the item is clicked. Provides the current selected value as an argument.
* @default white
*/
onClick?(selected: boolean): void;
/**
* The children.
*/
children?: React.ReactNode;
}
export declare const WiredItem: ({ children, value, selectedBgColor, selectedColor, color, selected, onClick, className, style, }: WiredItemProps) => JSX.Element;