mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
Update examples, update README documentation (#772)
* chore(examples): update example set-ups * chore: update readme docs
This commit is contained in:
parent
d24c60856f
commit
0315a17d4a
97 changed files with 6778 additions and 15821 deletions
|
@ -2,22 +2,17 @@
|
|||
export let status;
|
||||
export let error;
|
||||
|
||||
import { Row, Column, Link } from "carbon-components-svelte";
|
||||
|
||||
const dev = process.env.NODE_ENV === "development";
|
||||
</script>
|
||||
|
||||
<Row>
|
||||
<Column lg="{16}">
|
||||
<h1>{status}</h1>
|
||||
<div>
|
||||
{error.message}
|
||||
<Link inline href="/">Return home</Link>
|
||||
</div>
|
||||
{#if dev && error.stack}
|
||||
<div>
|
||||
<pre>{error.stack}</pre>
|
||||
</div>
|
||||
{/if}
|
||||
</Column>
|
||||
</Row>
|
||||
<svelte:head>
|
||||
<title>{status}</title>
|
||||
</svelte:head>
|
||||
|
||||
<h1>{status}</h1>
|
||||
|
||||
<p>{error.message}</p>
|
||||
|
||||
{#if dev && error.stack}
|
||||
<pre>{error.stack}</pre>
|
||||
{/if}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue