UNPKG

@tolokoban/ui

Version:

React components with theme

17 lines 675 B
import React from "react"; import { Children, OpaqueColorName, ViewWithValue } from "../../types.js"; import { CommonProps } from "../../theme"; export type ViewOptionsProps<T> = ViewWithValue<T> & CommonProps & { className?: string; /** Optional label to display above the options. */ label?: string; color?: OpaqueColorName; colorSelection?: OpaqueColorName; children: Array<React.ReactElement<ViewOptionsItemProps<T>>>; }; export type ViewOptionsItemProps<T> = { key: T; children: Children; }; export declare function ViewOptions<T>(props: ViewOptionsProps<T>): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=Options.d.ts.map