Skip to content

Latest commit

 

History

History
executable file
·
26 lines (22 loc) · 1.04 KB

Error.md

File metadata and controls

executable file
·
26 lines (22 loc) · 1.04 KB

##error-textbox-headref

Error Input Textbox

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

Preview ios error-textbox-headref Preview android error-textbox-headref

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>
                    <Item error>
                        <Input placeholder='Textbox with Error Input'/>
                        <Icon name='close-circle' />
                    </Item>
                </Content>
            </Container>
        );
    }
}