Skip to content

Support for badges on buttons - #1471

Open
olivierauverlot wants to merge 2 commits into
sqlpage:mainfrom
olivierauverlot:button_with_badge
Open

olivierauverlot wants to merge 2 commits into
sqlpage:mainfrom
olivierauverlot:button_with_badge

Conversation

@olivierauverlot

Copy link
Copy Markdown
Contributor

Improved the button component to support badges.

To do so, use the badge property and provide a JSON object containing the following properties:

  • title: The text displayed inside the badge (optional).
  • color: The color of the badge (e.g., red, green, blue, but also primary, warning, danger, etc.) (optional).
  • notification: A boolean indicating whether the badge should be displayed as a notification (optional).
  • blink: A boolean indicating whether the badge should blink (optional).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant