Skip to main content

AttributeOptions <T>

Index

Properties

optionalname

name?: string

The name of the attribute to observe.

Defaults to the kebab-case version of the prop.

optionalstatic

static?: boolean = ```ts false ```

Set to true to not observe the attribute for changes.

transform

transform: (value: string) => T

A function to transform the attribute value to the prop value.