# TextLink

To implement TextLink component into your project you'll need to add the import:

```jsx
import { TextLink } from '@kiwicom/orbit-react-native';
```

After adding import into your project you can use it simply like:

```jsx
<TextLink>Hello World!</TextLink>
```

## Props

Table below contains all types of the props available in TextLink component.

| Name     | Type                         | Default     | Description                                                                                                    |
| :------- | :--------------------------- | :---------- | :------------------------------------------------------------------------------------------------------------- |
| children | `React.Node`                 |             | The content of the TextLink.                                                                                   |
| testID   | `string`                     |             | Optional prop for testing purposes. (This disables the 'layout-only view removal' optimization for this view!) |
| href     | `string`                     |             | The URL to link when the TextLink is pressed.                                                                  |
| icon     | `React.Node`                 |             | The displayed icon.                                                                                            |
| onPress  | `(event) => void \| Promise` |             | Function for handling onPress event.                                                                           |
| size     | [`enum`](#enum)              |             | The size of the TextLink.                                                                                      |
| **type** | [`enum`](#enum)              | `"primary"` | The color type of the TextLink.                                                                                |

### enum

| size       | type          |
| :--------- | :------------ |
| `"small"`  | `"primary"`   |
| `"normal"` | `"secondary"` |
| `"large"`  |
