Skip to content

BottomNavigation

The bottom navigation bar component.

  • Import
    import "@tapsioss/web-components/bottom-navigation";
  • Tag
    <tapsi-bottom-navigation></tapsi-bottom-navigation>

Properties

NameDescriptionTypeDefault Value
labelDefines a string value that can be used to set a label for assistive technologies. https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelstring-

Slots

NameDescription
-The default slot for navigation items.

TIP

You can use slot names as variables:

ts
import { Slots } from "@tapsioss/web-components/bottom-navigation";

console.log(Slots.DEFAULT); // ""

Events

NameDescriptionType
activechangeFired when the items activation state changes (Bubbles).ActiveChangeEvent

TIP

You can import custom event names:

ts
import { 
  ActiveChangeEvent
} from "@tapsioss/web-components/bottom-navigation";

element.addEventListener(ActiveChangeEvent.type, handleTapsiBottomNavigationActiveChange);