UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

17 lines (13 loc) 435 B
import type React from "react"; import type { Spacing } from "../Stack/types"; import type { Globals } from "../common/types"; export interface TabProps { label: React.ReactNode; children: React.ReactNode; } export interface Props extends Globals { defaultSelected?: number; spacing?: Spacing; onChange?: (idx?: number) => void | Promise<void>; children: React.ReactElement<TabProps>[] | React.ReactElement<TabProps>; }