Back to blocks
npx shadcn@latest add https://ui.doras.to/r/tile.json

API Reference

Root

Contains all root functionality.

PropTypeDefault
variant"default" | "outline" | "transparent""default"
asChildbooleanfalse
classNamestring-

Examples

Use as a link

By using asChild, you can use the tile as a link or any other component

Outline

Using the outline variant that uses React Context to style children

Transparent

Similar to outline, but with a transparent background for use on cards or colored backgrounds