UNPKG

@primer/react-brand

Version:

Primer Brand is a GitHub's design system for creating React-based marketing websites and digital experiences.

19 lines (18 loc) 708 B
import React, { type InputHTMLAttributes } from 'react'; import type { BaseProps } from '../../component-helpers'; export type RadioProps = { /** * Apply inactive visual appearance to the Radio */ disabled?: boolean; /** * Indicates whether the Radio must be checked */ required?: boolean; /** * A unique value that is never shown to the user. * Used during form submission and to identify which Radio inputs are selected */ value?: string; } & Exclude<InputHTMLAttributes<HTMLInputElement>, 'value'> & BaseProps<HTMLInputElement>; export declare const Radio: React.ForwardRefExoticComponent<Omit<RadioProps, "ref"> & React.RefAttributes<unknown>>;