@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 (15 loc) • 681 B
Markdown
# 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. |
| **children** | `React.Node` | | The content of the Coupon. |