@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.
27 lines (21 loc) • 658 B
Flow
// @flow
/*
DOCUMENTATION: https://orbit.kiwi/components/tag/
*/
import * as React from "react";
import type { StyledComponent } from "styled-components";
import type { Globals } from "../common/common.js.flow";
type Size = "small" | "normal";
export type Type = "colored" | "neutral";
export type Props = {|
+type?: Type,
+children: React.Node,
+dateTag?: boolean,
+selected?: boolean,
+size?: Size,
+onRemove?: () => void | Promise<any>,
+onClick?: () => void | Promise<any>,
...Globals,
|};
declare export default React.AbstractComponent<Props, HTMLDivElement>;
declare export var StyledTag: StyledComponent<any, any, HTMLElement>;