Skip to content

What exactly does Buttons' "has-icon" do? #5043

Answered by asyncLiz
datvm asked this question in Q&A
Discussion options

You must be logged in to vote

Is it like another component where it's for SSR only?

Yes! Due to limitations with slotchange logic in SSR.

These attributes are only needed to avoid a Flash Of Unstyled Content (FOUC). For the button, that means the icon popping in and changing the width when the page's javascript loads.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by datvm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants