Skip to content

Latest commit

 

History

History
38 lines (34 loc) · 1.6 KB

Error.md

File metadata and controls

38 lines (34 loc) · 1.6 KB

Error Input Textbox

To display textbox with invalid data, include the error prop with <InputGroup>.

IOS Android

Syntax

import React, { Component } from 'react';
import { Container, Content, InputGroup, Input, Icon } from 'native-base';
​
export default class ErrorInputTextboxExample extends Component {
    render() {
        return (
            <Container>
                <Content>
                    <InputGroup iconRight error>
                        <Icon name='ios-close-circle' style={{color:'red'}}/>
                        <Input placeholder='Textbox with Error Input'/>
                    </InputGroup>
                </Content>
            </Container>
        );
    }
}