Skip to content

Commit 3e594b3

Browse files
committed
docs(Select): remove duplicate paragraphs
1 parent 9cf079f commit 3e594b3

File tree

1 file changed

+3
-26
lines changed
  • packages/react-core/src/components/Select/examples

1 file changed

+3
-26
lines changed

packages/react-core/src/components/Select/examples/Select.md

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@ By default, the menu toggle will display a badge to indicate the number of items
7878
```
7979

8080
### Typeahead
81-
Typeahead is a select variant that replaces the typical button toggle for opening the select menu with a text input and button toggle combo. As a user enters characters into the text input, the menu options will be filtered to match.
82-
83-
Typeahead is a select variant that replaces the typical button toggle for opening the select menu with a text input and button toggle combo. As a user enters characters into the text input, the menu options will be filtered to match.
84-
85-
To make a typeahead, pass `variant=typeahead` into the `<MenuToggle>` component and link an `onClick` function to the `<TextInputGroupMain>` component.
8681

8782
Typeahead is a select variant that replaces the typical button toggle for opening the select menu with a text input and button toggle combo. As a user enters characters into the text input, the menu options will be filtered to match.
8883

@@ -93,13 +88,6 @@ To make a typeahead, pass `variant=typeahead` into the `<MenuToggle>` component
9388
```
9489

9590
### Typeahead with create option
96-
If a user enters a value into a typeahead select menu that does not exist, you can allow them to create an option of that value.
97-
98-
If a user enters a value into a typeahead select menu that does not exist, you can allow them to create an option of that value.
99-
100-
To enable the creation ability, pass a predetermined `value` into a `<SelectOption>` component. You can use the `placeholder` property to change the default text shown in the text input.
101-
102-
The following example outlines the code implementation required to create a working typeahead menu that allows for creation.
10391

10492
If a user enters a value into a typeahead select menu that does not exist, you can allow them to create an option of that value.
10593

@@ -111,14 +99,9 @@ The following example outlines the code implementation required to create a work
11199

112100
```
113101

114-
### Multiple typeahead with chips
115-
A multiple typeahead can be used to allow users to select multiple options from a list. Additionally, you can render a chip group to be placed in the select toggle.
116-
117-
A multiple typeahead can be used to allow users to select multiple options from a list. Additionally, you can render a chip group to be placed in the select toggle.
118-
119-
When more items than the allowed limit are selected, overflowing items will be hidden under a "more" button. The following example hides items after more than 3 are selected. To show hidden items, select the “more” button. Select "show less" to hide extra items again.
102+
### Multiple typeahead with labels
120103

121-
A multiple typeahead can be used to allow users to select multiple options from a list. Additionally, you can render a chip group to be placed in the select toggle.
104+
A multiple typeahead can be used to allow users to select multiple options from a list. Additionally, you can render a label group to be placed in the select toggle.
122105

123106
When more items than the allowed limit are selected, overflowing items will be hidden under a "more" button. The following example hides items after more than 3 are selected. To show hidden items, select the “more” button. Select "show less" to hide extra items again.
124107

@@ -127,20 +110,14 @@ When more items than the allowed limit are selected, overflowing items will be h
127110
```
128111

129112
### Multiple typeahead with create option
130-
If the text that is entered into a typeahead doesn't match a menu item, users can choose to create a new option that matches the text input. You can also combine this create functionality with a chip group to display created items as chips."
131113

132-
If the text that is entered into a typeahead doesn't match a menu item, users can choose to create a new option that matches the text input. You can also combine this create functionality with a chip group to display created items as chips."
133-
134-
If the text that is entered into a typeahead doesn't match a menu item, users can choose to create a new option that matches the text input. You can also combine this create functionality with a chip group to display created items as chips."
114+
If the text that is entered into a typeahead doesn't match a menu item, users can choose to create a new option that matches the text input. You can also combine this create functionality with a label group to display created items as labels.
135115

136116
```ts file="./SelectMultiTypeaheadCreatable.tsx"
137117

138118
```
139119

140120
### Multiple typeahead with checkboxes
141-
By default, a multiple typeahead select allows you to select multiple menu items, placing a checkmark beside selected items. Like basic checkbox select menus, you can add checkboxes to your menu items. This approach may be more accurate and comprehensive for more complex menu scenarios like filtering.
142-
143-
By default, a multiple typeahead select allows you to select multiple menu items, placing a checkmark beside selected items. Like basic checkbox select menus, you can add checkboxes to your menu items. This approach may be more accurate and comprehensive for more complex menu scenarios like filtering.
144121

145122
By default, a multiple typeahead select allows you to select multiple menu items, placing a checkmark beside selected items. Like basic checkbox select menus, you can add checkboxes to your menu items. This approach may be more accurate and comprehensive for more complex menu scenarios like filtering.
146123

0 commit comments

Comments
 (0)