@radix-ui/themes
Version:
[](https://radix-ui.com/themes)
21 lines (20 loc) • 1.41 kB
TypeScript
import * as React from 'react';
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
import { radioGroupRootPropDefs } from './radio-group.props.js';
import type { ComponentPropsWithout, RemovedProps } from '../helpers/index.js';
import type { GetPropDefTypes, MarginProps } from '../props/index.js';
import type { Scope } from '@radix-ui/react-context';
type RadioGroupRootOwnProps = GetPropDefTypes<typeof radioGroupRootPropDefs>;
interface RadioGroupRootProps extends ComponentPropsWithout<typeof RadioGroupPrimitive.Root, 'asChild' | 'color' | 'defaultChecked'>, MarginProps, RadioGroupRootOwnProps {
}
declare const RadioGroupRoot: React.ForwardRefExoticComponent<RadioGroupRootProps & React.RefAttributes<HTMLDivElement>>;
interface RadioGroupItemProps extends ComponentPropsWithout<typeof RadioGroupItemRadio, RemovedProps>, MarginProps {
}
declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
interface RadioGroupItemRadioProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> {
}
declare const RadioGroupItemRadio: React.ForwardRefExoticComponent<RadioGroupItemRadioProps & {
__scopeRadioGroup?: Scope;
} & React.RefAttributes<HTMLButtonElement>>;
export { RadioGroupRoot as Root, RadioGroupItem as Item };
export type { RadioGroupRootProps as RootProps, RadioGroupItemProps as ItemProps };