@mozaic-ds/vue
Version:
Mozaic-Vue is the Vue.js implementation of ADEO Design system
37 lines (25 loc) • 1.41 kB
Markdown
# MTileExpandable
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. | `"icon"` `"button"` `"container"` | `"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
- [MButton](../button)
- [MIconButton](../iconbutton)
### Graph
```mermaid
graph TD;
MTileExpandable --> MButton
MTileExpandable --> MIconButton
style MTileExpandable fill:#008240,stroke:#333,stroke-width:4px
```