@renderlesskit/react
Version:
Collection of headless components/hooks that are accessible, composable, customizable from low level to build your own UI & Design System powered by Reakit
34 lines (33 loc) • 2.59 kB
TypeScript
import * as React from "react";
import { CompositeHTMLProps, CompositeOptions } from "reakit";
export declare type RadioGroupOptions = CompositeOptions;
export declare type RadioGroupHTMLProps = CompositeHTMLProps & React.FieldsetHTMLAttributes<any>;
export declare type RadioGroupProps = RadioGroupOptions & RadioGroupHTMLProps;
export declare const useRadioGroup: {
(options?: CompositeOptions | undefined, htmlProps?: RadioGroupHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): RadioGroupHTMLProps;
unstable_propsAreEqual: (prev: import("reakit").RoleOptions & {
disabled?: boolean | undefined;
focusable?: boolean | undefined;
} & Pick<Partial<import("reakit").CompositeStateReturn>, "baseId" | "unstable_virtual" | "orientation" | "currentId" | "wrap" | "groups" | "unstable_moves"> & Pick<import("reakit").CompositeStateReturn, "items" | "move" | "first" | "last" | "setCurrentId"> & React.HTMLAttributes<any> & React.RefAttributes<any> & {
wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined;
} & {
disabled?: boolean | undefined;
} & React.FieldsetHTMLAttributes<any>, next: import("reakit").RoleOptions & {
disabled?: boolean | undefined;
focusable?: boolean | undefined;
} & Pick<Partial<import("reakit").CompositeStateReturn>, "baseId" | "unstable_virtual" | "orientation" | "currentId" | "wrap" | "groups" | "unstable_moves"> & Pick<import("reakit").CompositeStateReturn, "items" | "move" | "first" | "last" | "setCurrentId"> & React.HTMLAttributes<any> & React.RefAttributes<any> & {
wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined;
} & {
disabled?: boolean | undefined;
} & React.FieldsetHTMLAttributes<any>) => boolean;
__keys: readonly any[];
__useOptions: (options: CompositeOptions, htmlProps: RadioGroupHTMLProps) => CompositeOptions;
};
export declare const RadioGroup: import("reakit-system").Component<"div", import("reakit").RoleOptions & {
disabled?: boolean | undefined;
focusable?: boolean | undefined;
} & Pick<Partial<import("reakit").CompositeStateReturn>, "baseId" | "unstable_virtual" | "orientation" | "currentId" | "wrap" | "groups" | "unstable_moves"> & Pick<import("reakit").CompositeStateReturn, "items" | "move" | "first" | "last" | "setCurrentId"> & React.HTMLAttributes<any> & React.RefAttributes<any> & {
wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined;
} & {
disabled?: boolean | undefined;
} & React.FieldsetHTMLAttributes<any>>;