ListLive

A <List> that refreshes when records in its resource change or the connection returns. Takes the same props as <List> and needs a realtime data provider.

Installation

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

A <List> that refreshes when records in its resource change or the connection returns. Takes the same props as <List> and needs a realtime data provider.

See the realtime guide for provider setup and usage.

Props

PropTypeDefaultDescription
actionsfalse | ReactElement<unknown, string | JSXElementConstructor<any>>—Header actions (create/export/filter buttons); nothing by default.
childrenReactNode—
classNamestring—
componentElementType<any, keyof IntrinsicElements>—Element/component wrapping the children (defaults to `"div"`).
perPagenumber—Rows-per-page for the initial query.
resourcestring—Override the ambient resource (defaults to the `<Resource>` context).
titleReactNode—Header title. A string/element renders as an `<h2>`; `false` omits it.