docs/utilities/show
Sections
Components
Utilities
Forms
Hooks
Copy Markdown
Conditionally render content based on a boolean value.
PreviewCode
Not there yet. Keep clicking...
CLIManual
pnpmbunnpmyarn
pnpm dlx shadcn@latest add @shark/show
import { Show } from "@/registry/react/components/show";
<Show when={isLoading} fallback={<Spinner />}>
</Show>
| Prop | Type | Default |
|---|---|---|
when | boolean | required |
fallback | React.ReactNode | - |
children | React.ReactNode | required |
[
Previous page
Presence ](/docs/utilities/presence)[
Next page
Swap ](/docs/utilities/swap)
On This Page