@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.
10 lines (9 loc) • 327 B
TypeScript
import { InitialTabsState, TabsState } from "./state";
export type TabsHookOptions = {
initialState?: InitialTabsState;
};
/**
* useTabsState is a hook that creates and manages a Tabs component's state on the
* Airplane context
*/
export declare const useTabsState: (id: string, options?: TabsHookOptions) => TabsState;