Skip to content

Commit 8faf7b1

Browse files
docs(segment): wrap text in labels for segments in toolbar playground (#2815)
1 parent 5045ed4 commit 8faf7b1

File tree

10 files changed

+28
-28
lines changed

10 files changed

+28
-28
lines changed

static/usage/v6/toolbar/segments/angular.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<ion-toolbar>
44
<ion-segment value="all">
55
<ion-segment-button value="all">
6-
All
6+
<ion-label>All</ion-label>
77
</ion-segment-button>
88
<ion-segment-button value="favorites">
9-
Favorites
9+
<ion-label>Favorites</ion-label>
1010
</ion-segment-button>
1111
</ion-segment>
1212
</ion-toolbar>

static/usage/v6/toolbar/segments/demo.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
<ion-toolbar>
1919
<ion-segment value="all">
2020
<ion-segment-button value="all">
21-
All
21+
<ion-label>All</ion-label>
2222
</ion-segment-button>
2323
<ion-segment-button value="favorites">
24-
Favorites
24+
<ion-label>Favorites</ion-label>
2525
</ion-segment-button>
2626
</ion-segment>
2727
</ion-toolbar>
2828
</ion-header>
2929
</ion-app>
3030
</body>
3131

32-
</html>
32+
</html>

static/usage/v6/toolbar/segments/javascript.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<ion-toolbar>
44
<ion-segment value="all">
55
<ion-segment-button value="all">
6-
All
6+
<ion-label>All</ion-label>
77
</ion-segment-button>
88
<ion-segment-button value="favorites">
9-
Favorites
9+
<ion-label>Favorites</ion-label>
1010
</ion-segment-button>
1111
</ion-segment>
1212
</ion-toolbar>

static/usage/v6/toolbar/segments/react.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
```tsx
22
import React from 'react';
3-
import { IonHeader, IonSegment, IonSegmentButton, IonTitle, IonToolbar } from '@ionic/react';
3+
import { IonHeader, IonLabel, IonSegment, IonSegmentButton, IonTitle, IonToolbar } from '@ionic/react';
44

55
function Example() {
66
return (
77
<IonHeader>
88
<IonToolbar>
99
<IonSegment value="all">
1010
<IonSegmentButton value="all">
11-
All
11+
<IonLabel>All</IonLabel>
1212
</IonSegmentButton>
1313
<IonSegmentButton value="favorites">
14-
Favorites
14+
<IonLabel>Favorites</IonLabel>
1515
</IonSegmentButton>
1616
</IonSegment>
1717
</IonToolbar>

static/usage/v6/toolbar/segments/vue.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
<ion-toolbar>
55
<ion-segment value="all">
66
<ion-segment-button value="all">
7-
All
7+
<ion-label>All</ion-label>
88
</ion-segment-button>
99
<ion-segment-button value="favorites">
10-
Favorites
10+
<ion-label>Favorites</ion-label>
1111
</ion-segment-button>
1212
</ion-segment>
1313
</ion-toolbar>
1414
</ion-header>
1515
</template>
1616

1717
<script lang="ts">
18-
import { IonHeader, IonSegment, IonSegmentButton, IonTitle, IonToolbar } from '@ionic/vue';
18+
import { IonHeader, IonLabel, IonSegment, IonSegmentButton, IonTitle, IonToolbar } from '@ionic/vue';
1919
import { defineComponent } from 'vue';
2020
2121
export default defineComponent({
22-
components: { IonHeader, IonSegment, IonSegmentButton, IonTitle, IonToolbar },
22+
components: { IonHeader, IonLabel, IonSegment, IonSegmentButton, IonTitle, IonToolbar },
2323
});
2424
</script>
2525
```

static/usage/v7/toolbar/segments/angular.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<ion-toolbar>
44
<ion-segment value="all">
55
<ion-segment-button value="all">
6-
All
6+
<ion-label>All</ion-label>
77
</ion-segment-button>
88
<ion-segment-button value="favorites">
9-
Favorites
9+
<ion-label>Favorites</ion-label>
1010
</ion-segment-button>
1111
</ion-segment>
1212
</ion-toolbar>

static/usage/v7/toolbar/segments/demo.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
<ion-toolbar>
1919
<ion-segment value="all">
2020
<ion-segment-button value="all">
21-
All
21+
<ion-label>All</ion-label>
2222
</ion-segment-button>
2323
<ion-segment-button value="favorites">
24-
Favorites
24+
<ion-label>Favorites</ion-label>
2525
</ion-segment-button>
2626
</ion-segment>
2727
</ion-toolbar>
2828
</ion-header>
2929
</ion-app>
3030
</body>
3131

32-
</html>
32+
</html>

static/usage/v7/toolbar/segments/javascript.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<ion-toolbar>
44
<ion-segment value="all">
55
<ion-segment-button value="all">
6-
All
6+
<ion-label>All</ion-label>
77
</ion-segment-button>
88
<ion-segment-button value="favorites">
9-
Favorites
9+
<ion-label>Favorites</ion-label>
1010
</ion-segment-button>
1111
</ion-segment>
1212
</ion-toolbar>

static/usage/v7/toolbar/segments/react.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
```tsx
22
import React from 'react';
3-
import { IonHeader, IonSegment, IonSegmentButton, IonTitle, IonToolbar } from '@ionic/react';
3+
import { IonHeader, IonLabel, IonSegment, IonSegmentButton, IonTitle, IonToolbar } from '@ionic/react';
44

55
function Example() {
66
return (
77
<IonHeader>
88
<IonToolbar>
99
<IonSegment value="all">
1010
<IonSegmentButton value="all">
11-
All
11+
<IonLabel>All</IonLabel>
1212
</IonSegmentButton>
1313
<IonSegmentButton value="favorites">
14-
Favorites
14+
<IonLabel>Favorites</IonLabel>
1515
</IonSegmentButton>
1616
</IonSegment>
1717
</IonToolbar>

static/usage/v7/toolbar/segments/vue.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
<ion-toolbar>
55
<ion-segment value="all">
66
<ion-segment-button value="all">
7-
All
7+
<ion-label>All</ion-label>
88
</ion-segment-button>
99
<ion-segment-button value="favorites">
10-
Favorites
10+
<ion-label>Favorites</ion-label>
1111
</ion-segment-button>
1212
</ion-segment>
1313
</ion-toolbar>
1414
</ion-header>
1515
</template>
1616

1717
<script lang="ts">
18-
import { IonHeader, IonSegment, IonSegmentButton, IonTitle, IonToolbar } from '@ionic/vue';
18+
import { IonHeader, IonLabel, IonSegment, IonSegmentButton, IonTitle, IonToolbar } from '@ionic/vue';
1919
import { defineComponent } from 'vue';
2020
2121
export default defineComponent({
22-
components: { IonHeader, IonSegment, IonSegmentButton, IonTitle, IonToolbar },
22+
components: { IonHeader, IonLabel, IonSegment, IonSegmentButton, IonTitle, IonToolbar },
2323
});
2424
</script>
2525
```

0 commit comments

Comments
 (0)