Skip to content

BottomNavigationItem

Represents a single item in a bottom navigation bar.

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

Properties

NameDescriptionTypeDefault Value
activeIndicates whether the item is active or not.booleanfalse
valueThe value associated with the item. This value has to be unique among sibling items.string""

Slots

NameDescription
iconThe slot for the icon element.
-The default slot for the content/label.

TIP

You can use slot names as variables:

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

console.log(ItemSlots.ICON); // "icon"
console.log(ItemSlots.DEFAULT); // ""

Events

NameDescriptionType
activateFired when the item activates (Bubbles).ActivateEvent

TIP

You can import custom event names:

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

element.addEventListener(ActivateEvent.type, handleTapsiBottomNavigationItemActivate);