"use client"
import { Card, CardContent } from "@/components/ui/card"
import { SectionHeading } from "@/components/ui/section-heading"
import { ComponentShowcase } from "@/components/ui/component-showcase"
import { useMaterial } from "@/contexts/material-context"
import { cn } from "@/lib/utils"
export function ElevationSection() {
const { selectedMaterial } = useMaterial()
const materialClass = selectedMaterial?.className || ""
return (
Elevation in UI design creates a visual hierarchy that helps users understand the relationship between
elements. Higher elevation suggests prominence and interactivity, while lower elevation indicates background
or supporting elements.
Apply elevation using Tailwind's shadow utility classes. Each elevation level maps to a specific shadow
class.
Elevation Guidelines
When to Use
Best Practices
Implementation
Shadow Classes
shadow-none
Level 0 (Flat)
shadow-sm
Level 1 (Low)
shadow-md
Level 2 (Medium)
shadow-lg
Level 3 (High)
Basic Example
{`
Interactive Example
{``}