Skip to content

Latest commit

 

History

History
executable file
·
43 lines (40 loc) · 1.55 KB

TransparentButton.md

File metadata and controls

executable file
·
43 lines (40 loc) · 1.55 KB

button-transparent-headref

Transparent Button

Include transparent prop with Button. This will render button with no border and no background color.

Preview ios button-transparent-headref Preview android button-transparent-headref Syntax

import React, { Component } from 'react';
import { Container, Header, Content, Button, Text } from 'native-base';
export default class ButtonTransparentExample extends Component {
  render() {
    return (
      <Container>
        <Header />
        <Content>
          <Button transparent light>
            <Text>Light</Text>
          </Button>
          <Button transparent>
            <Text>Primary</Text>
          </Button>
          <Button transparent success>
            <Text>Success</Text>
          </Button>
          <Button transparent info>
            <Text>Info</Text>
          </Button>
          <Button transparent warning>
            <Text>Warning</Text>
          </Button>
          <Button transparent danger>
            <Text>Danger</Text>
          </Button>
          <Button transparent dark>
            <Text>Dark</Text>
          </Button>
        </Content>
      </Container>
    );
  }
}