mirror of
https://github.com/shoelace-style/shoelace.git
synced 2026-01-12 11:09:13 +00:00
use @tag instead of @customElement for treeshaking
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import { LitElement, customElement, property } from 'lit-element';
|
||||
import { LitElement, property } from 'lit-element';
|
||||
import { tag } from '../../internal/decorators';
|
||||
import { formatBytes } from '../../internal/number';
|
||||
|
||||
/**
|
||||
* @since 2.0
|
||||
* @status stable
|
||||
*/
|
||||
@customElement('sl-format-bytes')
|
||||
@tag('sl-format-bytes')
|
||||
export class SlFormatBytes extends LitElement {
|
||||
/** The number to format in bytes. */
|
||||
@property({ type: Number }) value = 0;
|
||||
|
||||
Reference in New Issue
Block a user