Skins UI

Clay card

A soft, puffy body in a tint of your colour. Pressing squeezes it in.

A glass house lit from inside, among tall trees in the rain

Glass house in the redwoods

A quiet cabin under old trees, two hours from the city.

$240 a night

Customize

Props
Size

Installation

npx shadcn@latest add https://skinsui.dev/r/card-clay.json

Usage

usage.tsx
import { Button } from "@/components/skins/button-clay";import {  Card,  CardDescription,  CardFooter,  CardHeader,  CardMedia,  CardTitle,} from "@/components/skins/card-clay";export function Stay() {  return (    <Card>      <CardMedia src="https://assets.wensity.com/photos/architecture-interiors/forest-glass-house.webp" alt="A glass house lit from inside, among tall trees in the rain" />      <CardHeader>        <CardTitle>Glass house in the redwoods</CardTitle>        <CardDescription>A quiet cabin under old trees, two hours from the city.</CardDescription>      </CardHeader>      <CardFooter className="justify-between">        <span>$240 a night</span>        <Button size="sm">Book</Button>      </CardFooter>    </Card>  );}

Props

  • size"md"
    "sm" | "md" | "lg"

    Padding of 16, 20 or 28 pixels, with type and gaps to match.

  • hrefNone
    string

    Makes the whole card a link. Use it only when the card holds no other buttons or links.

Parts

  • Card<div>

    The card itself. Renders a link when you pass href.

  • CardMedia<div>

    A picture at the top, edge to edge. Pass src and alt, or your own children.

  • CardHeader<div>

    Holds the title and description.

  • CardTitle<h3>

    The heading.

  • CardDescription<p>

    A line or two under the title.

  • CardContent<div>

    Anything else: a list, a form, a chart.

  • CardFooter<div>

    A row at the bottom for actions or details.