UNPKG

@create-figma-plugin/ui

Version:

Production-grade Preact components that replicate the Figma UI design

17 lines 799 B
import { ComponentChildren } from 'preact'; import { EventHandler } from '../../types/event-handler.js'; import { FocusableComponentProps } from '../../types/focusable-component-props.js'; export interface TabsProps extends FocusableComponentProps<HTMLDivElement> { onChange?: EventHandler.onChange<HTMLInputElement>; onValueChange?: EventHandler.onValueChange<string>; options: Array<TabsOption>; value: null | string; } export type TabsOption = { children: ComponentChildren; value: string; }; export declare const Tabs: import("preact").FunctionalComponent<Omit<import("../../utilities/create-component.js").MixinHTMLElementAttributes<HTMLDivElement, TabsProps>, "ref"> & { ref?: import("preact").Ref<HTMLDivElement> | undefined; }>; //# sourceMappingURL=tabs.d.ts.map