UNPKG

@hhgtech/hhg-components

Version:
16 lines (15 loc) 532 B
import React from 'react'; import { DataTrackingType } from "../../../interfaces/types"; export type OptionValue = string | number | boolean; export type BtnChoiceOption = { label: string; value: OptionValue; } & DataTrackingType; export type Props = { choices: BtnChoiceOption[]; value?: OptionValue; className?: string; onChange?: (v?: OptionValue) => void; }; declare const BtnChoice: ({ value: valueInit, choices, className, onChange, }: Props) => React.JSX.Element; export { BtnChoice };