# Tiles

The TileLayout provides options for setting the behavior of its tiles.

By using these options, you can configure the following tile features:

* [Position and Dimensions](https://www.telerik.com/kendo-react-ui-develop/components/layout/tilelayout/tiles#position-and-dimensions)
* [Controlling the Position](https://www.telerik.com/kendo-react-ui-develop/components/layout/tilelayout/tiles#controlling-the-position)
* [Resizing](https://www.telerik.com/kendo-react-ui-develop/components/layout/tilelayout/tiles#resizing)
* [Reordering](https://www.telerik.com/kendo-react-ui-develop/components/layout/tilelayout/tiles#reordering)
* [Custom Rendering](https://www.telerik.com/kendo-react-ui-develop/components/layout/tilelayout/tiles#custom-rendering)

## Position and Dimensions

There are several properties that control the position and dimensions of the TileLayout tiles. You can pass these properties either as a [defaultPosition](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/tilelayoutitem#defaultPosition) object for each tile (uncontrolled mode), or though the [positions](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/tilelayoutprops#positions) property of the TileLayout component. See [Controlling the Position](https://www.telerik.com/kendo-react-ui-develop/components/layout/tilelayout/tiles#controlling-the-position) for details.

The possible configuration options are:

* [col](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/tileposition#col) (Required)—Defines on which column-line the tile will start. The *reordering* and *resizing* functionalities require it to work as expected.
* [row](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/tileposition#row)—Defines on which row-line the tile will start.
* [colSpan](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/tileposition#colSpan)—Specifies the number of cols that the tile spans.
* [rowSpan](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/tileposition#rowSpan)—Specifies the number of rows that the tile spans.
* [order](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/tileposition#order)—Defines the order index of the tile. If not set, tiles will receive a sequential order.

[Demo Source](https://demos.telerik.com/kendo-react-ui/layout/tilelayout/tiles/positions/func/source.txt)

## Controlling the Position

The TileLayout provides options for controlling the position of each item by using the [positions](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/tilelayoutprops#positions) property of the TileLayout.

To manage the positions of the TileLayout items:

1. Use its [`positions`](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/tilelayoutprops#positions) property.
2. Handle the [`onReposition`](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/tilelayoutprops#onReposition) event.
3. Pass the new value through the props.

[Demo Source](https://demos.telerik.com/kendo-react-ui/layout/tilelayout/tiles/controlled-mode/func/source.txt)

## Resizing

Users can resize the tiles by dragging their bottom and right-hand side borders or the bottom-right corner. Use the [resizable](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/tilelayoutitem#resizable) property to determine if the tile can be resized or allow one-direction resizing only.

The possible values are:

* `'horizontal'`—Users can resize the tile only in a horizontal direction by using the right resize handle.
* `'vertical'`—Users can resize the tile only in a vertical direction by using the bottom resize handle.
* `true` (Default)—Users can resize the tile in both horizontal and vertical directions by using the resize handles from the right and bottom sides and bottom-right corner.
* `false`—Users cannot resize the tile.

Extending a tile in the direction of an adjacent tile will push the adjacent tile down on the next row but on the same column-line. Narrowing a tile produces a gap that can be filled by another, if it fits and if it's on the same column-line.

> Note: The resizing functionality is enabled by default.

[Demo Source](https://demos.telerik.com/kendo-react-ui/layout/tilelayout/tiles/resizing/func/source.txt)

## Reordering

Users can reorder the tiles by dragging the whole item space. Use the [reorderable](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/tilelayoutitem#reorderable) boolean property to configure dragging.

Dragging a tile in the direction of an adjacent tile will push the adjacent tile down on the next row but on the same column-line. The initial placement of the dragged tile can be filled by another, if it fits and if it's on the same column-line. Non-reorderable tiles can fill gaps from reordering other tiles.

> Note: The reordering functionality is enabled by default.

[Demo Source](https://demos.telerik.com/kendo-react-ui/layout/tilelayout/tiles/reordering/func/source.txt)

## Custom Rendering

The TileLayout tiles enable you to customize its whole appearance. For that purpose, use the [item](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/tilelayoutitem#item) property.

The following example demonstrates how to customize the look and feel of the tiles.

[Demo Source](https://demos.telerik.com/kendo-react-ui/layout/tilelayout/tiles/custom-rendering/func/source.txt)

## Suggested Links

* [API Reference of the TileLayout](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/tilelayout)
* [API Reference of the TileLayoutProps](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/tilelayoutprops)
* [API Reference of the TileLayoutItem](https://www.telerik.com/kendo-react-ui-develop/components/layout/api/tilelayoutitem)
