# `m-tile-selectable`

A tile is a container component used to group related content and actions within a structured layout. It provides a clickable or static area that can display text, images, icons, or interactive elements. Tiles are commonly used to present key information, navigate to detailed views, or trigger specific actions in dashboards, cards, and grid-based layouts. Their adaptable design allows them to accommodate various content types while maintaining a consistent and organized interface.

## Props

| Name | Description | Type | Default |
|------|-------------|------|---------|
| `checked*` | The current value of the tile (selected or not). | `boolean` | `$bindable(false)` |
| `bordered` | Adds a border around the tile. | `boolean` | `true` |
| `inputtype` | Type of input used for selection. | `'checkbox'` `'radio'` | `checkbox` |
| `inputposition` | Position of the input relative to the tile content. | `'left'` `'right'` | `right` |
| `centered` | Vertical alignment of the input. | `boolean` |   |

## Slots

| Name | Description |
|------|-------------|
| `default` | Default slot for the main content of the tile. |
| `details` | Named slot for additional content shown below the main content. |

## Dependencies

### Depends on

- [m-checkbox](../checkbox/README.md)
- [m-radio](../radio/README.md)

### Graph

```mermaid
graph TD;
  m-tile-selectable --> m-checkbox
  m-tile-selectable --> m-radio
style m-tile-selectable fill:#008240,stroke:#333,stroke-width:4px
```

