UNPKG

react-wired-elements

Version:

Wired Elements as React components. TypeScript types included.

33 lines (32 loc) 856 B
import * as React from 'react'; import { BaseProps } from './types'; export interface WiredListBoxProps extends BaseProps { /** * Lays out the items horizontally. * @default false */ horizontal?: boolean; /** * Value of the selected item. */ selected?: any; /** * Text color. * @default "black" */ color?: string; /** * Background color. * @default "white" */ bgColor?: string; /** * Event fired when an item is selected by the user */ onSelect?(e: CustomEvent): void; /** * Must be one or more WiredItem components */ children?: React.ReactNode; } export declare const WiredListBox: ({ children, horizontal, selected, onSelect, color, bgColor, className, style, }: WiredListBoxProps) => JSX.Element;