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.

49 lines (39 loc) 1.31 kB
// Type definitions for @kiwicom/orbit-components // Project: http://github.com/kiwicom/orbit import type * as React from "react"; import type { Spacing } from "../Stack/types"; import type * as Common from "../common/types"; /** DOCS:implement HorizontalScroll component into your project you'll need to add the import: To ```jsx import HorizontalScroll from "@kiwicom/orbit-components/lib/HorizontalScroll"; ``` After adding import into your project you can use it simply like: ```jsx <HorizontalScroll> <FirstComponent /> <SecondComponent /> <ThirdComponent /> ...etc </HorizontalScroll> ``` */ export type ScrollSnap = "mandatory" | "proximity" | "inline" | "none"; export interface Props extends Common.Globals { /** set minimal height */ readonly minHeight?: number; /** prop for testing purposes */ readonly dataTest?: string; /** The spacing between children elements */ /** default: "small" */ readonly spacing?: Spacing; /** content of HorizontalScroll */ readonly children: React.ReactNode; readonly arrows?: boolean; readonly arrowColor?: string; readonly scrollSnap?: ScrollSnap; readonly scrollPadding?: number; readonly overflowElevation?: boolean; readonly elevationColor?: string; readonly onOverflow?: () => void; }