File tree Expand file tree Collapse file tree
packages/components/pie-breadcrumb/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { LitElement , html , unsafeCSS } from 'lit' ;
22import { RtlMixin , defineCustomElement } from '@justeattakeaway/pie-webc-core' ;
3+ import { classMap } from 'lit/directives/class-map.js' ;
34
45import styles from './breadcrumb.scss?inline' ;
5- import { type BreadcrumbProps } from './defs' ;
6+ import { type BreadcrumbProps , componentSelector , componentClass } from './defs' ;
67
78// Valid values available to consumers
89export * from './defs' ;
910
10- const componentSelector = 'pie-breadcrumb' ;
11-
1211/**
1312 * @tagname pie-breadcrumb
1413 */
1514export class PieBreadcrumb extends RtlMixin ( LitElement ) implements BreadcrumbProps {
1615 render ( ) {
17- return html `< h1 data-test-id ="pie-breadcrumb "> Hello world!</ h1 > ` ;
16+ const componentWrapperClasses = {
17+ [ componentClass ] : true ,
18+ } ;
19+
20+ return html `
21+ < nav
22+ data-test-id ="${ componentSelector } "
23+ class ="${ classMap ( componentWrapperClasses ) } ">
24+ < ol >
25+ < li > < span > Previous Page</ span > </ li >
26+ < li > < span > Current Page</ span > </ li >
27+ </ ol >
28+ </ nav > ` ;
1829 }
1930
2031 // Renders a `CSSResult` generated from SCSS by Vite
You can’t perform that action at this time.
0 commit comments