@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.
23 lines (20 loc) • 690 B
text/typescript
// Type definitions for @kiwicom/orbit-components
// Project: http://github.com/kiwicom/orbit
import type { SharedProps } from "../types";
export type Align = "start" | "end" | "left" | "center" | "right";
export type Scope = "col" | "row" | "colgroup" | "rowgroup";
export type WhiteSpace = "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap";
export type VerticalAlign = "baseline" | "middle" | "top" | "bottom";
export type Props = SharedProps & {
readonly align?: Align;
readonly whiteSpace?: WhiteSpace;
readonly verticalAlign?: VerticalAlign;
} & (
| {
readonly as?: "th";
readonly scope?: Scope;
}
| {
readonly as?: "td";
}
);