@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.
26 lines (21 loc) • 641 B
TypeScript
// Type definitions for @kiwicom/orbit-components
// Project: http://github.com/kiwicom/orbit
import type * as React from "react";
interface Action {
readonly name?: string;
readonly link?: string;
readonly onClick?: (ev?: React.SyntheticEvent<HTMLButtonElement>) => void;
}
export interface Props {
readonly actions?: Action[];
readonly feedbackUrl?: string;
readonly firstSectionLabel?: string;
readonly firstActionLabel?: string;
readonly feedbackLabel?: string;
}
export interface MappedOptions {
readonly key?: string;
readonly value: string | number;
readonly label?: string;
readonly disabled?: boolean;
}