Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 1.36 KB

FloatingLabel.md

File metadata and controls

32 lines (28 loc) · 1.36 KB

##floating-label-headref

Floating 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 floating-label-headref Preview android floating-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 floatingLabel>
                                <Label>Username</Label>
                                <Input />
                            </Item>
                            <Item floatingLabel last>
                                <Label>Password</Label>
                                <Input />
                            </Item>
                        </Form>
                    </Content>
                </Container>
        );
    }
}