Skip to content

Commit

Permalink
chore(components): add Breadcrumbs to demo app
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuagraber committed May 24, 2024
1 parent a9be5bf commit dbaddee
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/demo/pages/ComponentDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@
<h6>This is a sixth-level heading</h6>

<div class="pdap-grid-container mt-5">
<h2 class="col-span-full">Breadcrumbs</h2>
<div
class="col-span-2 pdap-flex-container flex-row justify-between w-full"
>
Click to navigate:
<router-link to="/">Home</router-link>
<router-link to="/foo">Foo</router-link>
<router-link to="/foo/bar">FooBar</router-link>
<router-link to="/foo/bar/baz">FooBarBaz</router-link>
</div>

<Breadcrumbs class="col-span-full" />

<h2 class="col-span-full mb-0">Buttons</h2>
<p class="col-span-full max-w-none">
These are all contained within a grid container, defined by using the
Expand Down Expand Up @@ -68,7 +81,7 @@

<script setup lang="ts">
import { PdapInputTypes } from '../../components/Input/types';
import { Button, Form, QuickSearchForm } from '../../components';
import { Breadcrumbs, Button, Form, QuickSearchForm } from '../../components';
const mockFormSchema = [
{
Expand Down
33 changes: 33 additions & 0 deletions src/demo/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,39 @@ const routes = [
path: '/',
component: ComponentDemo,
name: 'ComponentDemo',
meta: {
breadcrumbText: 'Home',
},
children: [
{
path: '/foo',
component: ComponentDemo,
name: 'ComponentDemoFoo',
meta: {
breadcrumbText: 'Foo',
},
children: [
{
path: '/foo/bar',
component: ComponentDemo,
name: 'ComponentDemoFooBar',
meta: {
breadcrumbText: 'Bar',
},
children: [
{
path: '/foo/bar/baz',
component: ComponentDemo,
name: 'ComponentDemoFooBarBaz',
meta: {
breadcrumbText: 'Baz',
},
},
],
},
],
},
],
},
];

Expand Down

0 comments on commit dbaddee

Please sign in to comment.