OptionalcleanupOptionalcssCSS Vars for the component. Keys of this object should be kebab-case and start with the element's tag name.
Values of this object represent the default fallback value for the given CSS var. These are then passed to the styles property, which must be a callback to take advantage of these.
OptionaleventsEvents that the element can dispatch. (These can be thought of as "outputs".)
OptionalhostHTML host classes. Values can be callbacks to determine when a host class should be defined, based on current instance state or inputs, or just false to indicate that the host class will only be manually set.
OptionalinitCalled as part of the first render call, before the first render call.
OptionaloptionsOptionalslotOptionalstateMake sure to define this at the top of your element init object or TypeScript will fail to infer the element's state type.
Setup the element's initial state. This is only called once per element instance, before the first render. The return type of this method becomes the element's state type.
OptionalstylesStatic styles. These should not and cannot change.
HTML tag name. This should not be used directly, as interpolating it with the html tagged template from this package is preferred.
Optionaltest
Initialization for an element-vir declarative element. This defines all the pieces required for rendering the element.