@sikka/hawa
Version:
Modern UI Kit made with Tailwind
50 lines (46 loc) • 1.46 kB
text/typescript
import * as React from 'react';
import React__default from 'react';
import { PopoverContentProps } from '@radix-ui/react-popover';
import { P as PositionType, O as OrientationType, D as DirectionType } from '../commonTypes-D_7LV7Ri.mjs';
type LabelProps = {
hint?: React.ReactNode;
hintSide?: PositionType;
htmlFor?: string;
required?: boolean;
};
type RadioOptionsTypes = {
value: any;
label: any;
disabled?: any;
sublabel?: any;
icon?: any;
tooltip?: string;
tooltipContentProps?: PopoverContentProps;
};
type RadioTypes = {
/** Required to enable selection and differentiate between different Radio instances. */
name: string;
disabled?: boolean;
orientation?: OrientationType;
design?: "default" | "tabs" | "cards" | "bordered";
width?: "default" | "full" | "none";
size?: "default" | "lg" | "sm" | "xs";
options: RadioOptionsTypes[];
onChange?: any;
defaultValue?: any;
value?: any;
direction?: DirectionType;
helperText?: any;
labelProps?: LabelProps;
label?: string;
tabsContainerClassName?: string;
forceHideHelperText?: boolean;
containerClassNames?: {
bordered?: string;
tabs?: string;
cards?: string;
default?: string;
};
};
declare const Radio: React__default.ForwardRefExoticComponent<RadioTypes & React__default.RefAttributes<HTMLInputElement>>;
export { Radio, type RadioOptionsTypes };