# Tile

To implement Tile component into your project you'll need to the import at least the Tile:

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

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

```jsx
<Tile title="Title" />
```

## Props

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

| Name            | Type                         | Default | Description                                                                                                              |
| :-------------- | :--------------------------- | :------ | ------------------------------------------------------------------------------------------------------------------------ |
| testID          | `string`                     |         | Optional prop for testing purposes. (This disables the 'layout-only view removal' optimization for this view!)           |
| nativeID        | `string`                     |         | Used to locate this view from native classes. (This disables the 'layout-only view removal' optimization for this view!) |
| description     | `string`                     |         | The content of the Tile.                                                                                                 |
| icon            | `React.Node`                 |         | Displayed icon on the left side of the Tile.                                                                             |
| onPress         | `(event) => void \| Promise` |         | Function for handling onPress event.                                                                                     |
| title           | `React.Node`                 |         | The title of the Tile.                                                                                                   |
| children        | `React.Node`                 |         | Content of expanded tile                                                                                                 |
| initialExpanded | `boolean`                    |         | Default state of expandable. [See Functional specs](#functional-specs)                                                   |
