ShowLive

A <Show> that refreshes the record on changes and reconnects. Takes the same props as <Show> and needs a realtime data provider.

Installation

pnpm dlx shadcn@latest add @chelone/show-live
Loading preview…

A <Show> that refreshes the record on changes and reconnects. Takes the same props as <Show> and needs a realtime data provider.

See the realtime guide for provider setup and usage.

Props

PropTypeDefaultDescription
actionsReactNode—Header actions (an edit button); nothing by default.
childrenReactNode—
classNamestring—
componentElementType<any, keyof IntrinsicElements>—
idIdentifier—Override the record id (defaults to the `:id` route param).
resourcestring—Override the ambient resource (defaults to the `<Resource>` context).
titleReactNode—Header title. A string/element renders as an `<h2>`; `false` omits it.