-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(preview): accordion web components
- Loading branch information
1 parent
055e5ad
commit 7f35f31
Showing
67 changed files
with
1,435 additions
and
507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { LitElement, css, unsafeCSS } from "lit"; | ||
import styles from "../index.css?inline"; | ||
import { Template } from "./template"; | ||
|
||
export class Accordion extends LitElement { | ||
static get styles() { | ||
return css`${unsafeCSS(styles)}`; | ||
} | ||
|
||
static get properties() { | ||
return { | ||
args: { type: Object }, | ||
}; | ||
} | ||
|
||
constructor() { | ||
super(); | ||
this.args = {}; | ||
} | ||
|
||
render() { | ||
return Template(this.args); | ||
} | ||
} | ||
|
||
customElements.define("spectrum-accordion", Accordion); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { LitElement, css, unsafeCSS } from "lit"; | ||
import styles from "../index.css?inline"; | ||
import { ItemTemplate } from "./template.js"; | ||
|
||
export class AccordionItem extends LitElement { | ||
static get styles() { | ||
return css`${unsafeCSS(styles)}`; | ||
} | ||
|
||
static get properties() { | ||
return { | ||
args: { type: Object }, | ||
}; | ||
} | ||
|
||
constructor() { | ||
super(); | ||
this.args = {}; | ||
} | ||
|
||
render() { | ||
return ItemTemplate(this.args); | ||
} | ||
} | ||
|
||
customElements.define("spectrum-accordion-item", AccordionItem); |
Oops, something went wrong.