Skip to content

Latest commit

 

History

History
42 lines (38 loc) · 1.71 KB

BlockButton.md

File metadata and controls

42 lines (38 loc) · 1.71 KB

Block Button

A block level button spans the entire width of the parent element. Create block level buttons by adding block prop with the Button.


IOS Android

Syntax

import React, { Component } from 'react';
import { Container, Content, Button } from 'native-base';
​
export default class BlockButtonExample extends Component {
    render() {
        return (
            <Container>
                <Content>
                    <Button block> Primary </Button>
                    <Button block success> Success </Button>
                    <Button block info> Info </Button>
                    <Button block warning> Warning </Button>
                    <Button block danger> Danger </Button>
                </Content>
            </Container>
        );
    }
}