@@ -395,54 +395,30 @@ const App = () => (
395
395
);
396
396
```
397
397
398
- ### Prefix Icons
398
+ ### Prefix & Suffix
399
399
400
- Use the ` prefix ` slot to prepend an icon to the control .
400
+ Use the ` prefix ` and ` suffix ` slots to add presentational icons and text. Avoid slotting in interactive elements, such as buttons, links, etc .
401
401
402
402
``` html:preview
403
403
<sl-select placeholder="Small" size="small" clearable>
404
404
<sl-icon name="house" slot="prefix"></sl-icon>
405
+ <sl-badge slot="suffix">New</sl-badge>
405
406
<sl-option value="option-1">Option 1</sl-option>
406
407
<sl-option value="option-2">Option 2</sl-option>
407
408
<sl-option value="option-3">Option 3</sl-option>
408
409
</sl-select>
409
410
<br />
410
411
<sl-select placeholder="Medium" size="medium" clearable>
411
412
<sl-icon name="house" slot="prefix"></sl-icon>
413
+ <sl-badge slot="suffix">New</sl-badge>
412
414
<sl-option value="option-1">Option 1</sl-option>
413
415
<sl-option value="option-2">Option 2</sl-option>
414
416
<sl-option value="option-3">Option 3</sl-option>
415
417
</sl-select>
416
418
<br />
417
419
<sl-select placeholder="Large" size="large" clearable>
418
420
<sl-icon name="house" slot="prefix"></sl-icon>
419
- <sl-option value="option-1">Option 1</sl-option>
420
- <sl-option value="option-2">Option 2</sl-option>
421
- <sl-option value="option-3">Option 3</sl-option>
422
- </sl-select>
423
- ```
424
-
425
- ### Suffix Icons
426
-
427
- Use the ` suffix ` slot to append an icon to the control.
428
-
429
- ``` html:preview
430
- <sl-select placeholder="Small" size="small" clearable>
431
- <sl-icon name="house" slot="suffix"></sl-icon>
432
- <sl-option value="option-1">Option 1</sl-option>
433
- <sl-option value="option-2">Option 2</sl-option>
434
- <sl-option value="option-3">Option 3</sl-option>
435
- </sl-select>
436
- <br />
437
- <sl-select placeholder="Medium" size="medium" clearable>
438
- <sl-icon name="house" slot="suffix"></sl-icon>
439
- <sl-option value="option-1">Option 1</sl-option>
440
- <sl-option value="option-2">Option 2</sl-option>
441
- <sl-option value="option-3">Option 3</sl-option>
442
- </sl-select>
443
- <br />
444
- <sl-select placeholder="Large" size="large" clearable>
445
- <sl-icon name="house" slot="suffix"></sl-icon>
421
+ <sl-badge slot="suffix">New</sl-badge>
446
422
<sl-option value="option-1">Option 1</sl-option>
447
423
<sl-option value="option-2">Option 2</sl-option>
448
424
<sl-option value="option-3">Option 3</sl-option>
0 commit comments