Skip to content

Prefix vs suffix icon button #3603

Discussion options

You must be logged in to vote

Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary.


In general, when placing an icon in a button, all button icons should be placed to the left of the text, serving as a prefix. This is to indicate important actions such as, "+ Create new".

However, there is an exception to this rule. When you are moving the user forward (like in a multi-step modal, or when paginating through something), you should use a "Forward >" (ChevronRightIcon) button. In this case, the icon serves as a suffix.

It's important to note that arrow icons are reserved for anchors and should not be used in buttons.

H…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@serifluous
Comment options

Answer selected by serifluous
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants