UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

20 lines 858 B
import React from 'react'; import { DefaultProps, MantineSize } from '../../../theme'; import useStyles from './Radio.styles'; export interface RadioProps extends DefaultProps<typeof useStyles>, Omit<React.ComponentPropsWithoutRef<'input'>, 'size'> { /** Radio label */ children: React.ReactNode; /** Radio value */ value: string; /** Active radio color */ color?: string; /** Predefined label fontSize, radio width, height and border-radius */ size?: MantineSize; /** Get input ref */ elementRef?: React.ForwardedRef<HTMLInputElement>; } export declare function Radio({ className, style, themeOverride, id, children, size, elementRef, title, disabled, color, classNames, styles, ...others }: RadioProps): JSX.Element; export declare namespace Radio { var displayName: string; } //# sourceMappingURL=Radio.d.ts.map