mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-08 14:35:09 +00:00
34 lines
846 B
TypeScript
34 lines
846 B
TypeScript
import { Button } from "@/examples/base/ui/button"
|
|
import {
|
|
Empty,
|
|
EmptyContent,
|
|
EmptyDescription,
|
|
EmptyHeader,
|
|
EmptyTitle,
|
|
} from "@/examples/base/ui/empty"
|
|
import { ArrowUpRightIcon } from "lucide-react"
|
|
|
|
export function EmptyWithMutedBackground() {
|
|
return (
|
|
<Empty className="bg-muted">
|
|
<EmptyHeader>
|
|
<EmptyTitle>No results found</EmptyTitle>
|
|
<EmptyDescription>
|
|
No results found for your search. Try adjusting your search terms.
|
|
</EmptyDescription>
|
|
</EmptyHeader>
|
|
<EmptyContent>
|
|
<Button>Try again</Button>
|
|
<Button
|
|
variant="link"
|
|
render={<a href="#" />}
|
|
className="text-muted-foreground"
|
|
nativeButton={false}
|
|
>
|
|
Learn more <ArrowUpRightIcon />
|
|
</Button>
|
|
</EmptyContent>
|
|
</Empty>
|
|
)
|
|
}
|