Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 1.16 KB

FloatingLabel.md

File metadata and controls

32 lines (28 loc) · 1.16 KB

floating-label-headref

Floating Label

The floatingLabel property creates an Input component, whose Label animates upward when the input is selected and animates downward when input is erased.

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 FloatingLabelExample 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>
    );
  }
}