soda-material
Version:
A React(>=18) component library that may follow [Material Design 3](https://m3.material.io/components) (a.k.a. Material You)
22 lines (21 loc) • 949 B
TypeScript
/// <reference types="react" />
import './radio-button.scss';
/**
* According to the official implementation, the ripple effect should not occupy space.
* Therefore, if the parent container has `overflow: hidden`, make sure that there is enough area to show the ripple effect.
* @specs https://m3.material.io/components/radio-button/specs
*/
export declare const RadioButton: import("react").ForwardRefExoticComponent<{
checked?: boolean | undefined;
/**
* Must provide for grouped radio (`inside <RadioGroup>`)
*/
value?: string | undefined;
/**
* For uncontrolled
*/
defaultChecked?: boolean | undefined;
disabled?: boolean | undefined;
onChange?(value?: string): void;
children?: React.ReactNode;
} & Omit<import("react").HTMLProps<HTMLElement>, "as" | "ref" | "checked" | "disabled" | "value" | "defaultChecked" | "children" | "onChange"> & import("react").RefAttributes<HTMLDivElement>>;