UNPKG

@arolariu/components

Version:

🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡

45 lines • 1.64 kB
import { Radio } from "@base-ui/react/radio"; import { RadioGroup as BaseRadioGroup } from "@base-ui/react/radio-group"; import * as React from "react"; /** * Coordinates radio group state and selection behavior. * * @remarks * - Renders a `<div>` element by default * - Built on {@link https://base-ui.com/react/components/radio-group | Base UI Radio Group} * - Supports the `render` prop for element composition * * @example * ```tsx * <RadioGroup>Content</RadioGroup> * ``` * * @see {@link https://base-ui.com/react/components/radio-group | Base UI Documentation} */ declare const RadioGroup: React.ForwardRefExoticComponent<Omit<BaseRadioGroup.Props<unknown>, "ref"> & React.RefAttributes<HTMLDivElement>>; /** * Renders the radio group item. * * @remarks * - Renders a `<button>` element by default * - Built on {@link https://base-ui.com/react/components/radio-group | Base UI Radio Group} * - Supports the `render` prop for element composition * * @example * ```tsx * <RadioGroupItem>Content</RadioGroupItem> * ``` * * @see {@link https://base-ui.com/react/components/radio-group | Base UI Documentation} */ declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<Radio.Root.Props<unknown>, "ref"> & React.RefAttributes<HTMLSpanElement>>; declare namespace RadioGroup { type Props = React.ComponentPropsWithRef<typeof BaseRadioGroup>; type State = BaseRadioGroup.State; } declare namespace RadioGroupItem { type Props = React.ComponentPropsWithRef<typeof Radio.Root>; type State = Radio.Root.State; } export { RadioGroup, RadioGroupItem }; //# sourceMappingURL=radio-group.d.ts.map