Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 1.35 KB

InlineLabel.md

File metadata and controls

33 lines (28 loc) · 1.35 KB

##inline-label-headref

Inline Label

The inlineLabel property creates a Input component, whose Label is in-line with Input, which does not hide when text is entered. It can be used with placeholder as well.

Preview ios inline-label-headref Preview android inline-label-headref

Syntax

import React, { Component } from 'react';
import { Container, Content, Form, Item, Input,Label} from 'native-base';
export default class FormExample extends Component {
    render() {
        return (
            <Container>
                    <Content>
                        <Form>
                            <Item inlineLabel>
                                <Label>Username</Label>
                                <Input />
                            </Item>
                            <Item inlineLabel last>
                                <Label>Password</Label>
                                <Input />
                            </Item>
                        </Form>
                    </Content>
                </Container>
        );
    }
}