Navbar

Name
Type
Default
Description

bgClass

string

Additional class to add on Navbar's "background" element

centerTitle

boolean

undefined

Makes centered navbar title. If not specified then it set it to center in iOS theme

colors

object

Object with Tailwind CSS colors classes

colors.bgIos

string

'bg-ios-light-surface-2 dark:bg-ios-dark-surface-2'

colors.bgMaterial

string

'bg-md-light-surface-2 dark:bg-md-dark-surface-2'

colors.textIos

string

'text-black dark:text-white'

colors.textMaterial

string

'text-md-light-on-surface dark:text-md-dark-on-surface'

component

string

'div'

Component's HTML Element

fontSizeIos

string

'text-[17px]'

Tailwind CSS class for font size in iOS theme

fontSizeMaterial

string

'text-[16px]'

Tailwind CSS class for font size in Material theme

innerClass

string

Additional class to add on Navbar's "inner" element

large

boolean

false

Renders large-sized navbar with extra row for large-sized title which becomes usual size on scroll

left

string

Content of the Navbar's "left" area

leftClass

string

Additional class to add on Navbar's "left" element

medium

boolean

false

Renders medium-sized navbar with extra row for medium-sized title which becomes usual size on scroll

outline

boolean

undefined

Renders outer hairlines (borders). If not specified, will be enabled for iOS theme

right

string

Content of the Navbar's "right" area

rightClass

string

Additional class to add on Navbar's "right" element

scrollEl

any

undefined

Element required for correct "collapse" functionality for medium/large/transparent Navbar. If not specified, it will use Navbar's parent element

subnavbar

string

Content of the Navbar's "subnavbar" area

subnavbarClass

string

Additional class to add on Navbar's "subnavbar" element

subtitle

string

Content of the Navbar's "subtitle" area

subtitleClass

string

Additional class to add on Navbar's "subtitle" element

title

string

Content of the Navbar's "title" area

titleClass

string

Additional class to add on Navbar's "title" element

titleFontSizeIos

string

'text-[17px]'

Tailwind CSS class for navbar title font size in iOS theme

titleFontSizeMaterial

string

'text-[22px]'

Tailwind CSS class for navbar title font size in Material theme

titleLargeFontSizeIos

string

'text-[34px]'

Tailwind CSS class for large-sized navbar title font size in iOS theme

titleLargeFontSizeMaterial

string

'text-[28px]'

Tailwind CSS class for large-sized navbar title font size in Material theme

titleMediumFontSizeIos

string

'text-[24px]'

Tailwind CSS class for medium-sized navbar title font size in iOS theme

titleMediumFontSizeMaterial

string

'text-[24px]'

Tailwind CSS class for medium-sized navbar title font size in Material theme

translucent

boolean

true

Makes Navbar background translucent (with backdrop-filter: blur) in iOS theme

transparent

boolean

false

Renders transparent navbar which becomes opaque on scroll

Name
Description

left

Content of the Navbar's "left" area

right

Content of the Navbar's "right" area

subnavbar

Content of the Navbar's "subnavbar" area

subtitle

Content of the Navbar's "subtitle" area

title

Content of the Navbar's "title" area

NavbarBackLink should be placed in Navbar's "left" area:

Name
Type
Default
Description

component

string

'a'

Component's HTML Element

showText

boolean | 'auto'

'auto'

Defines whether to show the link text. When 'auto', it hides link text for Material theme

text

string

'Back'

Text content of the back link

Name
Description

text

Text content of the back link

Examples

Last updated