UNPKG

@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) 498 B
import { Dispatch } from "react"; import { Action } from "./reducer"; import { InitialMultiSelectState, MultiSelectState } from "./state"; export type MultiSelectHookOptions = { initialState?: InitialMultiSelectState; }; /** * useMultiSelectState is a hook that creates and manages a MultiSelect's state on the * Airplane context */ export declare const useMultiSelectState: (id: string, options?: MultiSelectHookOptions) => { state: MultiSelectState; dispatch: Dispatch<Action>; };