# `m-tile-expandable`

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'` | `primary` |
| `bordered` | Adds a border around the tile. | `boolean` | `true` |
| `trigger` | Determines how the tile expansion is triggered. | `'container'` `'icon'` `'button'` | `icon` |
| `label` | Label for the action button (only used when trigger is 'button'). | `string` | `See more` |

## Slots

| Name | Description |
|------|-------------|
| `default` | Default slot for the main content of the tile. |
| `details` | Named slot for expandable content shown when the tile is opened. |

## Dependencies

### Depends on

- [m-button](../button/README.md)
- [m-icon-button](../iconbutton/README.md)

### Graph

```mermaid
graph TD;
  m-tile-expandable --> m-button
  m-tile-expandable --> m-icon-button
style m-tile-expandable fill:#008240,stroke:#333,stroke-width:4px
```

