@airplane/views
Version:
A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.
15 lines (14 loc) • 489 B
TypeScript
import { Dispatch } from "react";
import { Action } from "./reducer";
import { InitialRadioGroupState, RadioGroupState } from "./state";
export type RadioGroupHookOptions = {
initialState?: InitialRadioGroupState;
};
/**
* useRadioGroupState is a hook that creates and manages a RadioGroup's state on the
* Airplane context
*/
export declare const useRadioGroupState: (id: string, options?: RadioGroupHookOptions) => {
state: RadioGroupState;
dispatch: Dispatch<Action>;
};