UNPKG

@stratakit/react

Version:

A React component library for StrataKit

23 lines (22 loc) 880 B
import * as React from "react"; import { Radio as SkRadio } from "@stratakit/bricks"; import type { Radio as IuiRadio } from "@itwin/itwinui-react"; import type { PolymorphicForwardRefComponent } from "./~utils.js"; type SkRadioProps = React.ComponentProps<typeof SkRadio>; type IuiRadioProps = React.ComponentProps<typeof IuiRadio>; interface RadioProps extends Pick<IuiRadioProps, "label" | "status" | "labelProps" | "wrapperProps"> { /** * The value of the radio input. * * Only supports `string`, `number`, and `undefined`. * `readonly string[]` is no longer supported. * * @default "on" */ value?: SkRadioProps["value"]; /** NOT IMPLEMENTED. */ status?: IuiRadioProps["status"]; } /** @see https://itwinui.bentley.com/docs/radio */ export declare const Radio: PolymorphicForwardRefComponent<"input", RadioProps>; export {};