# Result
A page-level component for feeding back operation results. It supports four statuses — success / warning / info / error — each with its own icon and theme color, plus title, subtitle and an extra action area.
Result
<template>
<div class="demo-col">
<div class="demo-row" style="gap: 24px; align-items: flex-start; flex-wrap: wrap;">
<LhResult status="success" title="Submitted successfully" subtitle="Review is expected within two hours" />
<LhResult status="warning" title="Note" subtitle="The balance is insufficient, please top up first" />
<LhResult status="error" title="Submission failed" subtitle="Network error, please retry later">
<template #extra>
<LhButton type="primary" @click="retry">Retry</LhButton>
</template>
</LhResult>
<LhResult status="info" title="Tip" subtitle="You can apply for verification after completing your profile" />
</div>
<p class="demo-note">Four statuses (success / warning / info / error) and the extra action slot.</p>
</div>
</template>
<script>
export default {
methods: {
retry() {
alert('Demo: trigger retry')
},
},
}
</script>
# Props
| Prop | Description | Type | Default |
|---|---|---|---|
| status | Result status (determines icon and colors) | 'success' \| 'warning' \| 'info' \| 'error' | 'info' |
| title | Title | string | — |
| subtitle | Subtitle description | string | — |
| icon | Custom icon name (overrides the status default, e.g. 'refresh') | string | — |
| sx | sx shorthand layout props | — | — |
# Slots
| Slot | Description |
|---|---|
| icon | Custom visual area (replaces the icon) |
| title | Title content (takes priority over the title prop) |
| subtitle | Subtitle content (takes priority over the subtitle prop) |
| extra | Action area below the title (e.g. a "Back" button) |
# Accessibility
The root element carries role="status" and the icon area is aria-hidden="true", so the result status is announced by screen readers.
← Dropdown Breadcrumb →
Copyright © 2024-2026 FengMo WenXue