Skip to content

components/PanelEmpty

import { … } from 'zidane-ui'ui/src/components/PanelEmpty.tsx

Tray > Raised (the depth ladder)
A raised card in a tray
Raised live
Lifted one step while a run streams
track chip, well, fill
12.4k · $0.08
SectionLabel, Meta
3 files · 18ms
EmptyState
No sessions yet
Start one to see it here.
PanelEmpty, warn, loading
Nothing changed
Edits the agent makes show here.
Could not read the folder
Permission denied.

Components#

PanelEmptyComponent#

Renders an empty or error state for a side panel tab: an EmptyState inset from the panel edges and centred in the remaining height.

TypeScript
function PanelEmpty(props: PanelEmptyProps): Element
Parameters
NameTypeDescription
propsPanelEmptyProps

Component props.

Element
PanelEmpty props
NameTypeDescription
className?string

Extra classes on the root element.

hint?ReactNode

Secondary text under the title.

icon?string

Icon class shown above the title, such as i-ph-files.

style?CSSProperties

Inline styles on the root element, merged after the component's own.

titleReactNode

Main message. It takes the warning colour when warn is set.

warn?boolean

An error in place of content.

ui/src/components/PanelEmpty.tsx:34

PanelLoadingComponent#

Renders a centred spinner with a loading label for a side panel tab.

TypeScript
function PanelLoading(props: PanelLoadingProps): Element
Parameters
NameTypeDescription
propsPanelLoadingProps

Component props.

Element
PanelLoading props
NameTypeDescription
className?string

Extra classes on the root element.

style?CSSProperties

Inline styles on the root element, merged after the component's own.

ui/src/components/PanelEmpty.tsx:64

Interfaces#

PanelEmptyPropsInterface#

Props for PanelEmpty.

TypeScript
interface PanelEmptyProps
PanelEmptyProps properties
NameTypeDescription
className?string

Extra classes on the root element.

hint?ReactNode

Secondary text under the title.

icon?string

Icon class shown above the title, such as i-ph-files.

style?CSSProperties

Inline styles on the root element, merged after the component's own.

titleReactNode

Main message. It takes the warning colour when warn is set.

warn?boolean

An error in place of content.

ui/src/components/PanelEmpty.tsx:13

PanelLoadingPropsInterface#

Props for PanelLoading.

TypeScript
interface PanelLoadingProps
PanelLoadingProps properties
NameTypeDescription
className?string

Extra classes on the root element.

style?CSSProperties

Inline styles on the root element, merged after the component's own.

ui/src/components/PanelEmpty.tsx:52