UNPKG

@brizy/ui

Version:
16 lines (15 loc) 483 B
import { ReactElement, ReactText } from "react"; import { Props as TooltipProps } from "../Tooltip"; import { Color, FCC } from "../types"; export interface Props<T extends ReactText> { active?: T; backgroundColor?: Color; onChange: (a: T) => void; items: Array<{ id: T; icon: FCC; text: string; tooltipText?: TooltipProps["title"]; }>; } export declare const NavListButton: <T extends ReactText>(props: Props<T>) => ReactElement;