grepsr-ui-elements
Version:
47 lines (46 loc) • 1.58 kB
TypeScript
/// <reference types="react" />
import PropTypes from "prop-types";
interface RadioProps {
checked?: boolean;
formLabelId?: string;
ariaLablledBy?: string;
label?: string;
value?: string;
name?: string;
color: "default" | "primary" | "secondary" | "error" | "info" | "success" | "warning";
size: "medium" | "small";
disabled?: boolean;
disableRipple?: boolean;
labelPlacement: "end" | "start" | "top" | "bottom" | undefined;
}
export { RadioProps };
declare const GrepsrRadio: {
({ formLabelId, label, ariaLablledBy, name, checked, value, size, color, labelPlacement, disableRipple, disabled, }: RadioProps): JSX.Element;
defaultProps: {
formLabelId: string;
ariaLablledBy: string;
value: string;
name: string;
label: string;
labelPlacement: string;
checked: boolean;
disabled: boolean;
disableRipple: boolean;
size: string;
color: string;
};
propTypes: {
labelPlacement: PropTypes.Validator<string>;
size: PropTypes.Validator<string>;
color: PropTypes.Validator<string>;
formLabelId: PropTypes.Requireable<string>;
ariaLabelledBy: PropTypes.Requireable<string>;
name: PropTypes.Requireable<string>;
label: PropTypes.Requireable<string>;
checked: PropTypes.Requireable<boolean>;
value: PropTypes.Requireable<string>;
disabled: PropTypes.Requireable<boolean>;
disableRipple: PropTypes.Requireable<boolean>;
};
};
export default GrepsrRadio;