import { LitElement } from "lit"; import { html } from "lit"; import { customElement, state } from "lit/decorators.js"; import { dp } from "@supersoniks/concorde/directives"; import "./states"; import { tailwind } from "../../../../docs/tailwind"; @customElement("sonic-states-demo") export class SonicStatesDemo extends LitElement { static styles = [tailwind]; constructor() { super(); // Initialisation du dataProvider dp("states-demo-provider").set({}); } @state() private states = { pending: () => html`
Veuillez patienter...
Statut: ${status}
Une erreur s'est produite
L'état demandé n'existe pas