UNPKG

@tolokoban/ui

Version:

React components with theme

23 lines 876 B
import * as React from "react"; import { Children, ColorName } from "../../types.js"; import { CommonProps } from "../../theme/styles/common.js"; export type ViewLabelProps = CommonProps & { /** Text to display as label. */ value?: React.ReactNode; /** Tooltip */ title?: string; /** Color of the label. Default to `currentColor`. */ color?: ColorName; /** * If set, the label and its children are enclosed in a FlexBox * whose direction is "row" or "column". */ box?: "row" | "column" | "none"; /** * Content this label describes. * When the label is clicked, the content will get focus. */ children?: Children; }; export declare function ViewLabel({ color, className, value, title, box, fullwidth, children, }: ViewLabelProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=Label.d.ts.map