Skip to content

Latest commit

 

History

History
36 lines (33 loc) · 1.7 KB

DisabledButton.md

File metadata and controls

36 lines (33 loc) · 1.7 KB

Disabled Button

A disabled button is unusable and un-clickable.
The disabled prop of NativeBase Button is of type boolean. When present, it specifies that the button should be disabled. The disabled prop can be set to keep a user from clicking on the button until some other condition has been met (like selecting a checkbox, etc.). Then, a conditional code could remove the disabled value, and make the button usable.


IOS Android
*Syntax*
import React, { Component } from 'react';
import { Container, Content, Button } from 'native-base';
​
export default class DisabledButtonExample extends Component {
    render() {
        return (
            <Container>
                <Content>
                    <Button disabled> Disabled </Button>
                </Content>
            </Container>
        );
    }
}