Skip to main content

Result

A full-page state screen for the outcome of an operation — success, failure, or a 404 / 403 / 500 page. Empty's larger, more prominent sibling: Empty says "nothing here yet" inline within a list; Result says "here's what happened" for an entire view. Each status renders a matching icon.

import { Result } from '@jbpark/ui-kit';

<Result
status="success"
title="Payment successful"
subTitle="Order #2024-0815 has been confirmed."
extra={<Button type="primary">Back home</Button>}
/>;

Payment successful

Order #2024-0815 has been confirmed.

Props

PropTypeDefault
status'success' | 'error' | 'info' | 'warning' | '404' | '403' | '500''info'
iconReactNode (overrides the status icon)-
titleReactNode-
subTitleReactNode-
extraReactNode (action area)-
childrenReactNode (extra content below)-
classNamestring-

The four shared statuses (success / error / info / warning) use the same icon set as Modal's imperative variants, so a Result screen matches the tone of a Modal.success() / error() the user may have just seen.