@hhgtech/hhg-components
Version:
Hello Health Group common components
24 lines (23 loc) • 888 B
TypeScript
import React, { FC } from 'react';
import { DefaultProps, Selectors, RadioGroupProps } from '@mantine/core';
import useStyles from "./index.styles";
import { IconProps } from "../icons";
export type GenderOptionProps = {
value: string;
label: string;
icon: string | FC<IconProps>;
};
export interface Props extends DefaultProps<Selectors<typeof useStyles>> {
label?: string;
availableValue?: string;
isBaby?: boolean;
genderValue?: {
male: string;
female: string;
};
hideLabel?: boolean;
type?: 'button' | 'radio';
onChange?: (value: string) => void;
}
declare const GenderOptionControl: ({ label, availableValue: availableValueInit, styles, isBaby, genderValue, type, hideLabel, ...radioProps }: Props & Omit<RadioGroupProps, 'children' | 'styles'>) => React.JSX.Element;
export { GenderOptionControl };