@octopusdeploy/design-system-components
Version:
The design systems component library.
37 lines (36 loc) • 1.14 kB
TypeScript
import type * as React from "react";
interface RadioButtonProps<T extends string> {
/**
* The classname to apply to the radio button group.
*
* @deprecated Please avoid using this. This property will be removed in the near future.
*/
className?: string;
/**
* The value of the radio button.
*/
value: T;
/**
* The label of the radio button.
*/
label: React.ReactNode;
/**
* Controls whether the radio button is the default option.
* The label of a default option will have "(default)" appended to it.
*/
isDefault?: boolean;
/**
* Controls whether the radio button is disabled.
*/
disabled?: boolean;
/**
* Controls whether the radio button should be automatically focused.
*/
autoFocus?: boolean;
/**
* The accessible name of the radio button.
*/
accessibleName?: string;
}
export declare function RadioButton<T extends string>({ isDefault, label, disabled, accessibleName, className, value, autoFocus }: RadioButtonProps<T>): import("react/jsx-runtime").JSX.Element;
export default RadioButton;