@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.
33 lines (23 loc) • 1.23 kB
Markdown
# FeatureIcon
To implement FeatureIcon component into your project you'll need to add the import:
```jsx
import FeatureIcon from "@kiwicom/orbit-components/lib/FeatureIcon";
```
After adding import into your project you can use it simply like:
```jsx
<FeatureIcon name="TicketFlexi" />
```
## Props
Table below contains all types of the props available in the FeatureIcon component.
| Name | Type | Default | Description |
| :------- | :-------------- | :------ | :-------------------------------------------------------------------------- |
| alt | `string` | `""` | Optional property for passing own `alt` attribute to the DOM image element. |
| dataTest | `string` | | Optional prop for testing purposes. |
| id | `string` | | Set `id` for `FeatureIcon` |
| **name** | [`enum`](#enum) | | The name for the displayed feature icon. |
### enum
| name |
| :----------------- |
| `"TicketFlexi"` |
| `"TicketSaver"` |
| `"TicketStandard"` |