Skip to content

Latest commit

 

History

History
95 lines (64 loc) · 2.28 KB

options-title.mdx

File metadata and controls

95 lines (64 loc) · 2.28 KB
id title sidebar_label
options-title
Title Options
Title

Controls the top bar title.

const options = {
  topBar: {
    title: {},
  },
};

text

Set the title for the TopBar.

Type Required Platform
string No Both

fontSize

Set the title font size. On Android this value is in sp.

Type Required Platform
number No Both

color

Set the title color.

Type Required Platform
Color No Both

fontFamily

Set the title font family.

Type Required Platform
FontFamily No Both

fontStyle

Type Required Platform
enum('normal', 'italic') No Both

fontWeight

Type Required Platform
enum('normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900') No Both

alignment

fill will make the title stretch and consume all available space in the TopBar while center will center the title in the middle of the TopBar.

:::info defaults center is the default option on iOS while fill is the default for Android. :::

Type Required Platform
enum('center','fill') No Both

component

Set a react component as the title. If this option is specified then text is ignored.

Type Required Platform
Component No Both

topMargin

Change to TopBar's top margin.

Type Required Platform
number No Android

visible

Determines whether the TopBar is visible or not.

Type Required Platform
boolean No Both