Skip to content

docs(segment): wrap text in labels for segments in toolbar playground #2815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions static/usage/v6/toolbar/segments/angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<ion-toolbar>
<ion-segment value="all">
<ion-segment-button value="all">
All
<ion-label>All</ion-label>
</ion-segment-button>
<ion-segment-button value="favorites">
Favorites
<ion-label>Favorites</ion-label>
</ion-segment-button>
</ion-segment>
</ion-toolbar>
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v6/toolbar/segments/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
<ion-toolbar>
<ion-segment value="all">
<ion-segment-button value="all">
All
<ion-label>All</ion-label>
</ion-segment-button>
<ion-segment-button value="favorites">
Favorites
<ion-label>Favorites</ion-label>
</ion-segment-button>
</ion-segment>
</ion-toolbar>
</ion-header>
</ion-app>
</body>

</html>
</html>
4 changes: 2 additions & 2 deletions static/usage/v6/toolbar/segments/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<ion-toolbar>
<ion-segment value="all">
<ion-segment-button value="all">
All
<ion-label>All</ion-label>
</ion-segment-button>
<ion-segment-button value="favorites">
Favorites
<ion-label>Favorites</ion-label>
</ion-segment-button>
</ion-segment>
</ion-toolbar>
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v6/toolbar/segments/react.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
```tsx
import React from 'react';
import { IonHeader, IonSegment, IonSegmentButton, IonTitle, IonToolbar } from '@ionic/react';
import { IonHeader, IonLabel, IonSegment, IonSegmentButton, IonTitle, IonToolbar } from '@ionic/react';

function Example() {
return (
<IonHeader>
<IonToolbar>
<IonSegment value="all">
<IonSegmentButton value="all">
All
<IonLabel>All</IonLabel>
</IonSegmentButton>
<IonSegmentButton value="favorites">
Favorites
<IonLabel>Favorites</IonLabel>
</IonSegmentButton>
</IonSegment>
</IonToolbar>
Expand Down
8 changes: 4 additions & 4 deletions static/usage/v6/toolbar/segments/vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
<ion-toolbar>
<ion-segment value="all">
<ion-segment-button value="all">
All
<ion-label>All</ion-label>
</ion-segment-button>
<ion-segment-button value="favorites">
Favorites
<ion-label>Favorites</ion-label>
</ion-segment-button>
</ion-segment>
</ion-toolbar>
</ion-header>
</template>

<script lang="ts">
import { IonHeader, IonSegment, IonSegmentButton, IonTitle, IonToolbar } from '@ionic/vue';
import { IonHeader, IonLabel, IonSegment, IonSegmentButton, IonTitle, IonToolbar } from '@ionic/vue';
import { defineComponent } from 'vue';

export default defineComponent({
components: { IonHeader, IonSegment, IonSegmentButton, IonTitle, IonToolbar },
components: { IonHeader, IonLabel, IonSegment, IonSegmentButton, IonTitle, IonToolbar },
});
</script>
```
4 changes: 2 additions & 2 deletions static/usage/v7/toolbar/segments/angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<ion-toolbar>
<ion-segment value="all">
<ion-segment-button value="all">
All
<ion-label>All</ion-label>
</ion-segment-button>
<ion-segment-button value="favorites">
Favorites
<ion-label>Favorites</ion-label>
</ion-segment-button>
</ion-segment>
</ion-toolbar>
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v7/toolbar/segments/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
<ion-toolbar>
<ion-segment value="all">
<ion-segment-button value="all">
All
<ion-label>All</ion-label>
</ion-segment-button>
<ion-segment-button value="favorites">
Favorites
<ion-label>Favorites</ion-label>
</ion-segment-button>
</ion-segment>
</ion-toolbar>
</ion-header>
</ion-app>
</body>

</html>
</html>
4 changes: 2 additions & 2 deletions static/usage/v7/toolbar/segments/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<ion-toolbar>
<ion-segment value="all">
<ion-segment-button value="all">
All
<ion-label>All</ion-label>
</ion-segment-button>
<ion-segment-button value="favorites">
Favorites
<ion-label>Favorites</ion-label>
</ion-segment-button>
</ion-segment>
</ion-toolbar>
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v7/toolbar/segments/react.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
```tsx
import React from 'react';
import { IonHeader, IonSegment, IonSegmentButton, IonTitle, IonToolbar } from '@ionic/react';
import { IonHeader, IonLabel, IonSegment, IonSegmentButton, IonTitle, IonToolbar } from '@ionic/react';

function Example() {
return (
<IonHeader>
<IonToolbar>
<IonSegment value="all">
<IonSegmentButton value="all">
All
<IonLabel>All</IonLabel>
</IonSegmentButton>
<IonSegmentButton value="favorites">
Favorites
<IonLabel>Favorites</IonLabel>
</IonSegmentButton>
</IonSegment>
</IonToolbar>
Expand Down
8 changes: 4 additions & 4 deletions static/usage/v7/toolbar/segments/vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
<ion-toolbar>
<ion-segment value="all">
<ion-segment-button value="all">
All
<ion-label>All</ion-label>
</ion-segment-button>
<ion-segment-button value="favorites">
Favorites
<ion-label>Favorites</ion-label>
</ion-segment-button>
</ion-segment>
</ion-toolbar>
</ion-header>
</template>

<script lang="ts">
import { IonHeader, IonSegment, IonSegmentButton, IonTitle, IonToolbar } from '@ionic/vue';
import { IonHeader, IonLabel, IonSegment, IonSegmentButton, IonTitle, IonToolbar } from '@ionic/vue';
import { defineComponent } from 'vue';

export default defineComponent({
components: { IonHeader, IonSegment, IonSegmentButton, IonTitle, IonToolbar },
components: { IonHeader, IonLabel, IonSegment, IonSegmentButton, IonTitle, IonToolbar },
});
</script>
```