Material Bread
v0.2.10
Home
Getting Started
React Native
Web
Electron
MacOS
Windows
NextJs
Expo
Vue Native
Style
Font
Icons
Theme
Components
Appbar
Searchbar
Appbar Bottom
Avatar
Backdrop
Badge
Banner
Bottom Navigation
Bottom Navigation Item
Button
Card
CardActions
CardContent
CardHeader
CardMedia
Checkbox
Chip
DataTable
DataTableCell
DataTableHeader
DataTablePagination
DataTableRow
Dialog
Divider
Drawer
DrawerHeader
DrawerItem
DrawerSection
DrawerBottom
Fab
Speed dial
Icon
IconButton
List
ListExpand
ListItem
ListSection
Menu
MenuItem
Paper
Progress Bar
Progress Circle
Radio Button
Ripple
Select
SheetBottom
SheetSide
Slider
Snackbar
SwipeNav
Switch
Tabs
Tab
Textfield
Searchfield
ToggleButton
ToggleButtonGroup
Tooltip
Typography
Utils
Anchor
Color
Hoverable
Shadow
Storybook
Showcase
Contributing
Library
Docs
About

Typography

Typography Components follow a design system to convey meaning. - Material Docs

import { Heading, Subtitle, BodyText, Caption, Overline} from 'material-bread';

Component #

You can either pass text with the text prop or pass as children
H1
H2
H3
H4
H5
H6
Subtitle 1
Subtitle 2
Body 1
Body 2
Caption
Overline
Live Editing
class Demo extends React.Component {

  render() {
    return (
      <View>  
        <Heading type={1} text="H1" />
        <Heading type={2} text="H2" />
        <Heading type={3} text="H3" />
        <Heading type={4} text="H4" />
        <Heading type={5} text="H5" />
        <Heading type={6} text="H6" />
        <Subtitle type={1} text="Subtitle 1" />
        <Subtitle type={2} text="Subtitle 2" />
        <BodyText type={1} text="Body 1" />
        <BodyText type={2} text="Body 2" />
        <Caption text="Caption" />
        <Overline text="Overline" />
      </View>
    );
  }
}

Usage #

import React, { Component } from 'react';
import { View } from 'react-native';
import { Heading, Subtitle, BodyText, Caption, Overline, } from 'material-bread';

class Demo extends React.Component {
  
  render() {
    return (
      <View>
        <Heading type={1} text="h1" />
        <Heading type={2} text="h2" />
        <Heading type={3} text="h3" />
        <Heading type={4} text="h4" />
        <Heading type={5} text="h5" />
        <Heading type={6} text="h6" />
        <Subtitle type={1} text="Subtitle 1" />
        <Subtitle type={2} text="Subtitle 2" />
        <BodyText type={1} text="Body 1" />
        <BodyText type={2} text="Body 2" />
        <Caption text="Caption" />
        <Overline text="Overline" />
      </View>
    );
  }
}

Props #

Name
Description
Type
Default
align
Applies text-align to component
string
start
color
Text color
string
gutterBottom
Adds marginBottom 10 to create space
bool
false
style
Styles root element
object
text
Renders a Text string
string
themeColor
The color value defined within the `textColor` theme property
string
primary