-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
114 changed files
with
1,636 additions
and
858 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
title: Circular Progress | ||
subtitle: Can be used to indicate an ongoing task. | ||
--- |
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,64 @@ | ||
import { html, css, LitElement, TemplateResult } from "lit"; | ||
import { customElement, property } from "lit/decorators"; | ||
import "../../../../src/components/ha-bar"; | ||
import "../../../../src/components/ha-card"; | ||
import "../../../../src/components/ha-circular-progress"; | ||
import "@material/web/progress/circular-progress"; | ||
import { HomeAssistant } from "../../../../src/types"; | ||
|
||
@customElement("demo-components-ha-circular-progress") | ||
export class DemoHaCircularProgress extends LitElement { | ||
@property({ attribute: false }) hass!: HomeAssistant; | ||
|
||
protected render(): TemplateResult { | ||
return html`<ha-card header="Basic circular progress"> | ||
<div class="card-content"> | ||
<ha-circular-progress indeterminate></ha-circular-progress></div | ||
></ha-card> | ||
<ha-card header="Different circular progress sizes"> | ||
<div class="card-content"> | ||
<ha-circular-progress | ||
indeterminate | ||
size="tiny" | ||
></ha-circular-progress> | ||
<ha-circular-progress | ||
indeterminate | ||
size="small" | ||
></ha-circular-progress> | ||
<ha-circular-progress | ||
indeterminate | ||
size="medium" | ||
></ha-circular-progress> | ||
<ha-circular-progress | ||
indeterminate | ||
size="large" | ||
></ha-circular-progress></div | ||
></ha-card> | ||
<ha-card header="Circular progress with an aria-label"> | ||
<div class="card-content"> | ||
<ha-circular-progress | ||
indeterminate | ||
aria-label="Doing something..." | ||
></ha-circular-progress> | ||
<ha-circular-progress | ||
indeterminate | ||
.ariaLabel=${"Doing something..."} | ||
></ha-circular-progress></div | ||
></ha-card>`; | ||
} | ||
|
||
static get styles() { | ||
return css` | ||
ha-card { | ||
max-width: 600px; | ||
margin: 24px auto; | ||
} | ||
`; | ||
} | ||
} | ||
|
||
declare global { | ||
interface HTMLElementTagNameMap { | ||
"demo-components-ha-circular-progress": DemoHaCircularProgress; | ||
} | ||
} |
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 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 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 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 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 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 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 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
Oops, something went wrong.