Homelogologo
Sponsor

Tile

A versatile component used to display content in a card-like format, often used for selection or feature highlights.

Usage

The Tile component is used to present information or options in a structured, visually distinct container. It supports compound components for flexible layout.

import { Tile } from "@elemnts-ui/react"; <Tile> <Tile.Content> <Tile.Title>Settings</Tile.Title> <Tile.Description>...</Tile.Description> </Tile.Content> </Tile>;

Variants

Change the visual appearance using the variant prop

Orientation

Tiles can be oriented horizontally or vertically.

API Reference

Root

PropTypeDefault
variant"primary" | "secondary" | "tertiary""primary"
size"xs" | "sm" | "md" | "lg" | "xl""md"
orientation"horizontal" | "vertical""horizontal"
selectedbooleanfalse

Content

PropTypeDefault
asChildbooleanfalse

Title

PropTypeDefault
asChildbooleanfalse

Description

PropTypeDefault
asChildbooleanfalse

Indicator

PropTypeDefault
asChildbooleanfalse

Control

PropTypeDefault
asChildbooleanfalse