grepsr-ui-elements
Version:
45 lines (44 loc) • 1.53 kB
TypeScript
/// <reference types="react" />
import PropTypes from "prop-types";
interface radioGroupArr {
id: number | string;
label: string | undefined;
value: string | undefined;
disabled?: boolean;
}
interface RadioGroupProps {
ariaLabelledBy?: string;
defaultValue?: string;
name?: string;
labelPlacement: "end" | "start" | "top" | "bottom" | undefined;
color: "default" | "primary" | "secondary" | "error" | "info" | "success" | "warning";
row: boolean;
size: 'medium' | 'small' | 'large';
radioGroupTitle?: string | undefined;
radioGroupArr: radioGroupArr[];
}
export { RadioGroupProps };
declare const GrepsrRadioGroup: {
({ ariaLabelledBy, defaultValue, name, labelPlacement, color, row, radioGroupTitle, radioGroupArr, size, }: RadioGroupProps): JSX.Element;
defaultProps: {
name: string;
ariaLabelledBy: string;
labelPlacement: string;
color: string;
row: boolean;
size: string;
radioGroupTitle: string;
};
propTypes: {
ariaLabelledBy: PropTypes.Requireable<string>;
defaultValue: PropTypes.Requireable<string>;
name: PropTypes.Requireable<string>;
labelPlacement: PropTypes.Validator<string>;
color: PropTypes.Validator<string>;
row: PropTypes.Validator<boolean>;
size: PropTypes.Validator<string>;
radioGroupTitle: PropTypes.Requireable<string>;
radioGroupArr: PropTypes.Validator<any[]>;
};
};
export default GrepsrRadioGroup;