diff --git a/docs/resources/ui/widgets/built-in-widgets/badge.md b/docs/resources/ui/widgets/built-in-widgets/badge.md index 5f481660..f0316ecd 100644 --- a/docs/resources/ui/widgets/built-in-widgets/badge.md +++ b/docs/resources/ui/widgets/built-in-widgets/badge.md @@ -4,20 +4,17 @@ tags: [Base Elements] # Badge -The Badget widget indicates the number of items that need your attention. Typically it's a medium-sized dot that floats over other widgets such as IconButton. +The **Badge** widget displays a small indicator over a child widget. It commonly shows a numeric count, but it can also display short text. For example, use it to show the number of unread notifications or items in a shopping cart. -For example, You could use the badge widget to show the number of unread notifications and items in your shopping cart. + - +## Adding the Badge Widget -## Adding Badge widget +To add the Badge widget: -Here's an example of how you can add the Badge widget to your project: - -1. First, drag the **Badge** widget from the Base Elements tab and carefully drop it into the -Actions section of the AppBar. -2. Now, add the **IconButton** widget inside the **Badge** widget. Customize the Icon and its color as per your requirement. -3. Select the **Badge** widget, move to the properties panel, and set the **top** side padding to 5 and **right** side padding to 15. +1. Drag the **Badge** widget from the **Base Elements** section to the desired location, such as the **Actions** section of an AppBar. +2. Add a child widget, such as an **IconButton**, and customize it as needed. +3. Under **Badge Properties**, adjust **Padding** to position the badge over the child widget.