# `m-tile-clickable`

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 |
|------|-------------|------|---------|
| `appearance` | Defines the visual style of the tile. | `'primary'` `'secondary'` `'inverse'` | `primary` |
| `bordered` | Adds a border around the tile. | `boolean` | `true` |
| `href` | If set, the tile becomes an external link (`<a>`).
Used to navigate to a full URL.
Set `internal` prop to `true` for internal navigation. | `string` |   |
| `internal` | If set, the tile becomes an internal link.
Used for navigation within the app. | `boolean` |   |
| `iconposition` | Position of the icon relative to the content. | `'bottom'` `'right'` | `right` |
| `onAction` | Callback to trigger when button action is clicked. | `() => void` |   |

## Slots

| Name | Description |
|------|-------------|
| `default` | Default slot for the main content of the tile. |
| `icon` | Named slot for the action icon. |

## Events

| Name | Description | Type |
|------|------|-------------|
| `action` | Emits when the action button is triggered. | `CustomEvent<void>` |

