mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(demos): basic form examples
This commit is contained in:
@@ -2,6 +2,24 @@
|
||||
<ion-title>Floating Labels</ion-title>
|
||||
</ion-navbar>
|
||||
|
||||
<ion-content padding class="has-header components-demo">
|
||||
<ion-content class="has-header components-demo">
|
||||
|
||||
<ion-list>
|
||||
|
||||
<ion-input floating-label>
|
||||
<ion-label>Username</ion-label>
|
||||
<input type="text" value="">
|
||||
</ion-input>
|
||||
|
||||
<ion-input floating-label>
|
||||
<ion-label>Password</ion-label>
|
||||
<input type="password" value="">
|
||||
</ion-input>
|
||||
|
||||
</ion-list>
|
||||
|
||||
<div padding>
|
||||
<button primary block>Sign In</button>
|
||||
</div>
|
||||
|
||||
</ion-content>
|
||||
|
||||
@@ -2,6 +2,24 @@
|
||||
<ion-title>Inline Labels</ion-title>
|
||||
</ion-navbar>
|
||||
|
||||
<ion-content padding class="has-header components-demo">
|
||||
<ion-content class="has-header components-demo">
|
||||
|
||||
<ion-list>
|
||||
|
||||
<ion-input>
|
||||
<ion-label>Username</ion-label>
|
||||
<input type="text" value="">
|
||||
</ion-input>
|
||||
|
||||
<ion-input>
|
||||
<ion-label>Password</ion-label>
|
||||
<input type="password" value="">
|
||||
</ion-input>
|
||||
|
||||
</ion-list>
|
||||
|
||||
<div padding>
|
||||
<button primary block>Sign In</button>
|
||||
</div>
|
||||
|
||||
</ion-content>
|
||||
|
||||
@@ -2,6 +2,22 @@
|
||||
<ion-title>Inset Labels</ion-title>
|
||||
</ion-navbar>
|
||||
|
||||
<ion-content padding class="has-header components-demo">
|
||||
<ion-content class="has-header components-demo">
|
||||
<ion-list inset>
|
||||
|
||||
<ion-input>
|
||||
<ion-label>Username</ion-label>
|
||||
<input type="text" value="">
|
||||
</ion-input>
|
||||
|
||||
<ion-input>
|
||||
<ion-label>Password</ion-label>
|
||||
<input type="password" value="">
|
||||
</ion-input>
|
||||
|
||||
</ion-list>
|
||||
|
||||
<div padding>
|
||||
<button primary block>Sign In</button>
|
||||
</div>
|
||||
</ion-content>
|
||||
|
||||
@@ -2,6 +2,22 @@
|
||||
<ion-title>Placeholders</ion-title>
|
||||
</ion-navbar>
|
||||
|
||||
<ion-content padding class="has-header components-demo">
|
||||
<ion-content class="has-header components-demo">
|
||||
|
||||
<ion-list>
|
||||
|
||||
<ion-input>
|
||||
<input type="text" placeholder="Username">
|
||||
</ion-input>
|
||||
|
||||
<ion-input>
|
||||
<input type="password" placeholder="Password">
|
||||
</ion-input>
|
||||
|
||||
</ion-list>
|
||||
|
||||
<div padding>
|
||||
<button primary block>Sign In</button>
|
||||
</div>
|
||||
|
||||
</ion-content>
|
||||
|
||||
@@ -2,6 +2,23 @@
|
||||
<ion-title>Stacked Labels</ion-title>
|
||||
</ion-navbar>
|
||||
|
||||
<ion-content padding class="has-header components-demo">
|
||||
<ion-content class="has-header components-demo">
|
||||
<ion-list>
|
||||
|
||||
<ion-input stacked-label>
|
||||
<ion-label>Username</ion-label>
|
||||
<input type="text">
|
||||
</ion-input>
|
||||
|
||||
<ion-input stacked-label>
|
||||
<ion-label>Password</ion-label>
|
||||
<input type="password">
|
||||
</ion-input>
|
||||
|
||||
</ion-list>
|
||||
|
||||
<div padding>
|
||||
<button primary block>Sign In</button>
|
||||
</div>
|
||||
|
||||
</ion-content>
|
||||
|
||||
Reference in New Issue
Block a user