UNPKG

@shopify/shop-minis-react

Version:

React component library for Shopify Shop Minis with Tailwind CSS v4 support (source-only, requires TypeScript)

33 lines (30 loc) 830 B
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs' const data: ReferenceEntityTemplateSchema = { name: 'useErrorScreen', category: 'hooks', subCategory: 'util', isVisualComponent: false, related: [], description: 'The `useErrorScreen` hook provides functionality for showing error screens. It returns a function that can be used to display an error screen with a given error message.', type: 'hook', defaultExample: { codeblock: { tabs: [ { code: './useErrorScreen.example.tsx', language: 'tsx', }, ], title: 'Example code', }, }, definitions: [ { title: '', type: 'UseErrorScreenGeneratedType', description: 'A hook that returns a function to show an error screen.', }, ], } export default data