Skip to content

Latest commit

 

History

History
61 lines (56 loc) · 2.08 KB

FloatingLabel.md

File metadata and controls

61 lines (56 loc) · 2.08 KB

floating-label-headref

Floating Label

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

Preview ios floating-label-headref Preview android floating-label-headref

Syntax

{% codetabs name="React Native", type="js" -%} import React, { Component } from 'react'; import { Container, Header, Content, Form, Item, Input, Label } from 'native-base'; export default class FloatingLabelExample extends Component { render() { return (

Username Password ); } } {%- language name="Vue Native", type="vue" -%} Username Password {%- endcodetabs %}


When using floatingLabel, use getRef to get the reference of <Input/> component. Always wrap floatingLabel component with <Form/>.