MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Error

Function Error

packages/dev/s2-docs/src/Error.tsx:6–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import {Content, Heading, IllustratedMessage} from '@react-spectrum/s2';
5
6export default function Error() {
7 return (
8 <div
9 style={{
10 display: 'flex',
11 alignItems: 'center',
12 height: '50vh',
13 justifyContent: 'center',
14 flexDirection: 'row'
15 }}>
16 <IllustratedMessage>
17 <BrowserError />
18 <Heading>Error 404: Page not found</Heading>
19 <Content>
20 This page isn't available. Try checking the URL or visit a different page.
21 </Content>
22 </IllustratedMessage>
23 </div>
24 );
25}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected