feat(docs): component -> custom element
This commit is contained in:
parent
36a77bf477
commit
a96d161e02
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ import { Aside, Badge } from '@astrojs/starlight/components';
|
|||
**Web Component Base (WCB)**
|
||||
<Badge text="alpha" variant="danger" /> is a zero-dependency, tiny JS base class for creating reactive [custom elements](https://developer.mozilla.org/en-US/docs/Web/API/Web_Components/Using_custom_elements) easily.
|
||||
|
||||
When you extend the WebComponent class for your component, you only have to define the template and properties. Any change in any property value will automatically cause just the component UI to render.
|
||||
When you extend the WebComponent class for your custom element, you only have to define the template and properties. Any change in any property value will automatically cause just the component UI to render.
|
||||
|
||||
The result is a reactive UI on property changes.
|
||||
|
||||
|
|
Loading…
Reference in a new issue