imarc / boilerplate

Responsive CSS, HTML and JavaScript front-end starting point, plus components!
https://imarc-boilerplate.netlify.app/
8 stars 10 forks source link

Use of SVG as label of a dropdown #51

Closed marcelmoreau closed 2 years ago

marcelmoreau commented 2 years ago

Right now, BpDropdown accepts a string for its label prop. There will be instances where we will want an icon as the triggering label, such as a magnifying glass icon that exposes a search dropdown on click.

khamer commented 2 years ago

There's a slot for this already - try using <template #link><svg ... </svg></template> and tell me if that doesn't cover your needs.