Bottom Navigation
import { AXBottomNavigationModule } from '@acorex/components/bottom-navigation'; Overview
Solid
Top
Usage
ax-bottom-navigationPreview
Code
Has Border
hasBorder property, you can add a line to the top of the bottom navigationPreview
Code
Indicator Position
Preview
Code
Prefix / Suffix
ax-prefix and ax-suffix inside ax-bottom-navigation-itemPreview
Code
Disabled
disabled propertyPreview
Code
Design Tokens
| --ax-comp-bottom-navigation-bg-color | var(--ax-sys-color-surface) | Background color of the bottom navigation bar. Uses the system's surface color. |
| --ax-comp-bottom-navigation-border-size | 1px | Border thickness of the bottom navigation bar. |
| --ax-comp-bottom-navigation-text-color | var(--ax-sys-color-on-surface) | Text color for inactive items. Uses the system's text color. |
| --ax-comp-bottom-navigation-active-text-color | N/A | Text color for the active item. |
| --ax-comp-bottom-navigation-active-bg-color | N/A | Background color for the active item (applies to 'with-line' look). |
| --ax-comp-bottom-navigation-active-icon-bg-color | unset | Background color for the active item's icon (applies to 'pills' look). |
| --ax-comp-bottom-navigation-ripple-color | var(--ax-sys-color-primary-surface), 0.3 | Color of the ripple effect on item interaction. Uses the primary color with 0.3 opacity. |
| --ax-comp-bottom-navigation-indicator-width | 60% | Width of the active item indicator. |
| --ax-comp-bottom-navigation-indicator-height | 0.2rem | Height of the active item indicator. |
| --ax-comp-bottom-navigation-indicator-border-radius | 0.125rem | Border radius of the active item indicator. |
Props
| name | string | - | Sets the name of the navigation item. |
| active | boolean | false | Indicates whether the navigation item is active. |
| look | AXStyleLookType | solid | Determines the appearance of the navigation item. |
| disabled | boolean | false | Specifies whether the navigation item is disabled. |
| hasBorder | boolean | false | Indicates whether the navigation item has a border. |
| indicatorPosition | string | top | Specifies the position of the indicator on the navigation item. |
| readonly | boolean | false | Specifies whether the navigation item is read-only. |
Methods
| onItemClick | AXClickEvent | Specifies the function to be called when an item in the bottom navigation is clicked. |