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.

36 lines 1.11 kB
import * as React from "react"; import type { Props } from "./types"; /** * @orbit-doc-start * README * ---------- * # Coupon * * To implement Coupon component into your project you'll need to add the import: * * ```jsx * import Coupon from "@kiwicom/orbit-components/lib/Coupon"; * ``` * * After adding import into your project you can use it simply like: * * ```jsx * <Coupon>PromotionCode</Coupon> * ``` * * ## Props * * Table below contains all types of the props available in the Coupon component. * * | Name | Type | Default | Description | * | :----------- | :----------- | :------ | :---------------------------------- | * | dataTest | `string` | | Optional prop for testing purposes. | * | id | `string` | | Set `id` for `Coupon` | * | **children** | `React.Node` | | The content of the Coupon. | * * * @orbit-doc-end */ declare const Coupon: ({ children, dataTest, id }: Props) => React.JSX.Element; export default Coupon; //# sourceMappingURL=index.d.ts.map