Components Data display

Empty and Result

Nothing to show yet, and the outcome of a whole page or flow, each with what to do next.

import { Empty, Result } from '@kition/tessera-ui'
No feedback yet
Messages people send from the app arrive here.

Props

What is shown
import { Empty } from '@kition/tessera-ui'

<Empty
  title="No feedback yet"
  description="Messages people send from the app arrive here."
/>

Examples

No feedback, access denied
No feedback yet
Messages people send from the app arrive here.

Access denied

Your account cannot open the admin console.

empty-result.tsx
import { Button, Empty, Result } from '@kition/tessera-ui'

export default function Demo() {
  return (
    <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 16 }}>
      <Empty title="No feedback yet" description="Messages people send from the app arrive here.">
        <Button size="sm">Refresh</Button>
      </Empty>
      <Result status="forbidden" title="Access denied" description="Your account cannot open the admin console." extra={<Button size="sm" variant="primary">Sign in again</Button>} />
    </div>
  )
}

Props

Empty

Nothing to show yet: a quiet drawing, what is missing, and what to do about it.

PropTypeDefaultDescription
titleReactNode—
descriptionReactNode—
imageReactNode—Replaces the inbox drawing (an icon of the situation).
childrenReactNode—Actions under the text (Create, Retry).
classNamestring—

Result

The outcome of a whole page or flow (paid, access denied, page not found), with what to do next.

PropTypeDefaultDescription
statusResultStatus'info'
titlerequiredReactNode—
descriptionReactNode—
extraReactNode—
classNamestring—