Empty State
crenspire-glass-ui/empty-stateFreeComponent
An empty state component with glassy variants.
Live preview
live · rendered by the registry
Rendered by crenspire/glass-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://glass-ui.crenspire.com/r/empty-state.jsonSource
1"use client"23import * as React from "react"4import {5 EmptyState as BaseEmptyState,6 EmptyStateIcon,7 EmptyStateTitle,8 EmptyStateDescription,9} from "@/components/ui/empty-state"10import { cn } from "@/lib/utils"11import type { GlassCustomization } from "@/lib/glass-utils"12import { hoverEffects, type HoverEffect } from "@/lib/hover-effects"1314export interface EmptyStateProps extends React.ComponentProps<typeof BaseEmptyState> {15 effect?: HoverEffect16 glass?: GlassCustomization17}1819/**20 * Glass UI Empty State - A beautifully designed empty state component with glassy effects21 * Built on top of the base EmptyState component with enhanced visual styling22 */23export const EmptyState = React.forwardRef<HTMLDivElement, EmptyStateProps>(24 ({ className, variant = "glass", effect = "none", glass, ...props }, ref) => {25 return (26 <BaseEmptyState27 ref={ref}28 variant={variant}29 glass={glass}30 className={cn(31 hoverEffects({ hover: effect }),32 className33 )}34 {...props}35 />36 )37 }38)39EmptyState.displayName = "EmptyState"4041export { EmptyStateIcon, EmptyStateTitle, EmptyStateDescription }42
What it pulls in
Other registry items
Files it writes
More from crenspire/glass-ui
All 49 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | crenspire/glass-ui | Components | Free | 2 deps · 5 files | |
| Alertalert | crenspire/glass-ui | Components | Free | no deps · 5 files | |
| Alert Dialogalert-dialog | crenspire/glass-ui | Components | Free | 1 dep · 5 files | |
| Avataravatar | crenspire/glass-ui | Components | Free | 1 dep · 5 files | |
| Badgebadge | crenspire/glass-ui | Components | Free | no deps · 5 files | |
| Breadcrumbbreadcrumb | crenspire/glass-ui | Components | Free | 2 deps · 5 files | |
| Buttonbutton | crenspire/glass-ui | Components | Free | 1 dep · 5 files | |
| Button Groupbutton-group | crenspire/glass-ui | Components | Free | no deps · 5 files |
