Skip to content

Latest commit

 

History

History
executable file
·
38 lines (34 loc) · 1.28 KB

File metadata and controls

executable file
·
38 lines (34 loc) · 1.28 KB

button-size-headref

Button Size

Want to have buttons of fancy size?
Include the following props with your Button.

  • small: for small size button.
  • large: for large size button.

Preview ios button-size-headref Preview android button-size-headref

Syntax

import React, { Component } from 'react';
import { Container, Header, Content, Button, Text } from 'native-base';
export default class ButtonSizeExample extends Component {
  render() {
    return (
      <Container>
        <Header />
        <Content>
          //Small size button
          <Button small primary>
            <Text>Default Small</Text>
          </Button>
          //Regular size button
          <Button success>
            <Text>Success Default</Text>
          </Button>
          //Large size button
          <Button large dark>
            <Text>Dark Large</Text>
          </Button>
        </Content>
      </Container>
    );
  }
}