Skip to content

@bynary.composables.class.Interface.IUseClassOptions

github-actions[bot] edited this page Jul 11, 2024 · 3 revisions

@bynary/composables / @bynary/composables/class / IUseClassOptions

Interface: IUseClassOptions

A set of options for useClass

Properties

initialValue?

optional initialValue: boolean

Whether the class should be added initially. Defaults to true

Example

const isLoading = useClass('label', { initialValue: false });

Will not set the class initially

<my-component class="loading"></my-component>

Defined in

class/src/class.composable.ts:21

Clone this wiki locally