mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
docs(label): update usage to place text-wrap on label (#17705)
closes ionic-team/ionic-docs#467
This commit is contained in:
@ -26,8 +26,8 @@ Label is a wrapper element that can be used in combination with `ion-item`, `ion
|
||||
<ion-label>Default Item</ion-label>
|
||||
</ion-item>
|
||||
|
||||
<ion-item text-wrap>
|
||||
<ion-label>
|
||||
<ion-item>
|
||||
<ion-label text-wrap>
|
||||
Multi-line text that should wrap when it is too long
|
||||
to fit on one line in the item.
|
||||
</ion-label>
|
||||
@ -90,8 +90,8 @@ const Example: React.SFC<{}> = () => (
|
||||
<IonLabel>Default Item</IonLabel>
|
||||
</IonItem>
|
||||
|
||||
<IonItem text-wrap>
|
||||
<IonLabel>
|
||||
<IonItem>
|
||||
<IonLabel text-wrap>
|
||||
Multi-line text that should wrap when it is too long
|
||||
to fit on one line in the item.
|
||||
</IonLabel>
|
||||
@ -153,8 +153,8 @@ export default Example;
|
||||
<ion-label>Default Item</ion-label>
|
||||
</ion-item>
|
||||
|
||||
<ion-item text-wrap>
|
||||
<ion-label>
|
||||
<ion-item>
|
||||
<ion-label text-wrap>
|
||||
Multi-line text that should wrap when it is too long
|
||||
to fit on one line in the item.
|
||||
</ion-label>
|
||||
|
||||
Reference in New Issue
Block a user