Back to Shark UI

Show

docs/utilities/show

latest5.1 KB
Original Source

Sections

Components

Utilities

Forms

Hooks

Show

Copy Markdown

Conditionally render content based on a boolean value.

PreviewCode

Not there yet. Keep clicking...

Installation#

CLIManual

pnpmbunnpmyarn

pnpm dlx shadcn@latest add @shark/show

Usage#

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

API Reference#

Show#

PropTypeDefault
whenbooleanrequired
fallbackReact.ReactNode-
childrenReact.ReactNoderequired

[

Previous page

Presence ](/docs/utilities/presence)[

Next page

Swap ](/docs/utilities/swap)

On This Page

InstallationUsageAPI ReferenceShow