Docs
Result-page

Result Page

A component to display a result page with a status icon, title, and subtitle.

Success
Operation completed successfully
Error
An error occurred
Info
Additional information
Warning
Be cautious!
Custom Icon
This uses a custom icon component
Success
Operation completed successfully

Usage

Example Code

1import { ResultPage } from "inc-design-system/resultPage";

Example Code

1 <ResultPage status="success" title="Success" subTitle="Operation completed successfully" />

Props

ResultPage

PropTypeDescriptionDefault
status"success" | "error" | "info" | "warning"Optional. Status of the result page, which determines the icon displayed.-
titleReact.ReactNodeOptional. Title of the result page.-
subTitleReact.ReactNodeOptional. Subtitle of the result page.-
extraReact.ReactNodeOptional. Additional content to display below the title and subtitle.-
iconReact.ReactNodeOptional. Custom icon to display instead of the default icon based on status.-
sizenumberOptional. Size of the icon. Overrides the default size.-
titleFontSizestringOptional. Font size of the title text.'20px'
subTitleFontSizestringOptional. Font size of the subtitle text.'12px'