Skip to content

More color possibility #1138

Feb 20, 2025 · 3 comments · 7 replies
Discussion options

You must be logged in to vote

@ftinkere You can create buttons in any of the colours available for badges using the as="button" attribute for flux:badge.
e.g. <flux:badge color="cyan" as="button" size="lg" icon="plus">Cyan button</flux:badge>

and, more versions with the variant="solid", e.g.
<flux:badge color="cyan" variant="solid" as="button" size="lg" icon="plus">Cyan button</flux:badge>

This gives you easy access to all of these colours: https://fluxui.dev/components/badge#colors

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@ftinkere
Comment options

@jeffchown
Comment options

@joshhanley
Comment options

@robs007
Comment options

@jeffchown
Comment options

Answer selected by ftinkere
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@joshhanley
Comment options

@jeffchown
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants