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-liveLoading 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
| Prop | Type | Default | Description |
|---|---|---|---|
| actions | ReactNode | — | Header actions (an edit button); nothing by default. |
| children | ReactNode | — | |
| className | string | — | |
| component | ElementType<any, keyof IntrinsicElements> | — | |
| id | Identifier | — | Override the record id (defaults to the `:id` route param). |
| resource | string | — | Override the ambient resource (defaults to the `<Resource>` context). |
| title | ReactNode | — | Header title. A string/element renders as an `<h2>`; `false` omits it. |