Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 1.36 KB

StackedLabel.md

File metadata and controls

32 lines (28 loc) · 1.36 KB

##stacked-label-headref

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