Skip to content

Latest commit

 

History

History
37 lines (33 loc) · 1.41 KB

ButtonSize.md

File metadata and controls

37 lines (33 loc) · 1.41 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, Content, Button, Text } from 'native-base';
export default class ButtonSizeExample extends Component {
    render() {
        return (
            <Container>
                <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 info>
                        <Text>Dark Large</Text>
                    </Button>
                </Content>
            </Container>
        );
    }
}