Skip to content

@bynary.composables.class.Function.useModifier

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

@bynary/composables / @bynary/composables/class / useModifier

Function: useModifier()

useModifier(modifier, options?): WritableSignal<boolean>

Parameters

modifier: string

The name of the modifier

options?: IUseModifierOptions

A set of options

Returns

WritableSignal<boolean>

A signal that allows to toggle the given modifier class on the host element

Defined in

class/src/modifier.composable.ts:171

Clone this wiki locally