Docs Quickstart Figma Flowbite
1.3.0
Getting started
Customize
Components
API Reference NEW
directives / Class

FlowbiteRouterLinkActiveDirective

Decorators:@Directive
Selectors:[flowbiteRouterLinkActive]

Wrapping directive over RouterLinkActive.

See Also

Constructor

Set the RouterLinkActive's ariaCurrentWhenActive to the value passed to the component (via this Directive).

Presentation

Properties

NameTypeDescription
routerLinkActive
RouterLinkActive

RouterLinkActive directive

Accessors

get isActive

Getter for _isActive

Presentation
get isActive(): Signal<boolean>;
Type

Signal<boolean>

Methods

onIsActiveChange()

Update _isActive when RouterLinkActive's isActive update

Presentation
onIsActiveChange(): void;
Returns
void

Usage Notes

It provides a clean way to have 'isActive' data with signal base value.

Flowbite

© 2019-2024 Flowbite™ is a registered trademark. All Rights Reserved.