Skip to content
shadcn.io
shadcn.io is not affiliated with official shadcn/ui

Shadcn Show for React and Tailwind

Conditionally render content based on a boolean value.

Not there yet. Keep clicking...

Installation

bunx --bun shadcn@latest add https://kit.dev/r/show.json

Usage

import { Show } from "@/registry/react/components/show";
<Show when={isLoading} fallback={<Spinner />}>
 {/** content */}
</Show>

API Reference

Show

PropTypeDefault
whenbooleanrequired
fallbackReact.ReactNode-
childrenReact.ReactNoderequired