How to Use CSS Naming Rules Basic Styles Components
Elements
Button Input Radio&Checkbox On-off Select Datetimepicker Dropdown
Layout
Grid Form
Data Display
Tab Table Pagination Badge Process
Feedback
Dialog Message Tooltip PopConfirm Loader
Other
Breadcrumb SideNav
I18N

Badge

A badge is displayed on the top-right of the holder element. The holder element can be anything.

Note: Because the badge'scss: positionis'absolute', the holder element'scss: positionmust not be'static'.


                             

    <button class="z-btn default">
        Button
        <span class="z-badge">8</span>
    </button>
    <button class="z-btn default">
        Button
        <span class="z-badge green">0</span>
    </button>
    <button class="z-btn default">
        Button
        <span class="z-badge red">20</span>
    </button>
    <button class="z-btn default">
        Button
        <span class="z-badge teal">888</span>
    </button>
    <button class="z-btn default">
        Button
        <span class="z-badge yellow">3</span>
    </button>
    <button class="z-btn default">
        Button
        <span class="z-badge purple">36</span>
    </button>