Skip to content

We don't need no stinking badges! (on sl-icon-buttons...) #2313

Answered by claviska
ourson66 asked this question in Help
Discussion options

You must be logged in to vote

For convenience, buttons do have built-in styles for badges, and we're exploring whether this makes sense for other component combinations.

As for icon button, it doesn't render a <slot> like regular buttons, so nothing you slot in will show up. One suggestion is to use regular buttons with custom styles to adjust the size/shape. Another is to add the badge and the button inside another container and style them accordingly.

I hope that helps!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ourson66
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants