Button and Action Widgets
Overview
This page covers the classnames used for buttons, sliders, and interactive widgets like toggles in the sidebar. Below, you will find detailed information on each widget’s classnames, including deprecated versions (if applicable) and current classnames to ensure your application remains up-to-date.
1. Button
Description: Buttons are widely used for user interactions such as submitting forms, toggling features, or performing actions. Different types of buttons include primary, secondary, and action buttons.
Deprecated Classnames:
btn
btn-primary
New Classnames:
add-on-sidebar-button--cs
ai-sidebar-icon--cs
Sample CSS:
Sample HTML:
2. Toggle Button
Description: Toggle buttons are used to switch between two states, such as enabling or disabling features. They can be styled to look like switches or buttons with an active/inactive state.
Deprecated Classnames:
multiToggle_option_descriptor_form_style_labels_font-weight_0
New Classnames:
slider--cs
slider-wrapper--cs
Sample CSS:
Sample HTML:
3. Action Button Group
Description: Action button groups are used when multiple buttons are grouped together to perform related actions. These button groups are often seen in toolbars or for setting configurations.
Deprecated Classnames:
href-container__link
href-container__link--special
New Classnames:
href-special-link--cs
href-link-file--cs
Sample CSS:
Sample HTML:
4. Slider
Description: Sliders are used to adjust values within a range. They are commonly used for settings like volume, brightness, or numerical values. Sliders are interactive and can have custom styling for the track and handle.
Deprecated Classnames:
BeeWidthSlider_*
rc-slider
New Classnames:
slider--cs
slider-wrapper--cs
Sample CSS:
Sample HTML:
5. Button with Icon
Description: Buttons with icons are commonly used to perform actions while also providing a visual representation (an icon) to make the function clearer. These buttons are useful for toolbars, navigation, or forms.
Deprecated Classnames:
href-container__link
New Classnames:
href-custom-special-link--cs
Sample CSS:
Sample HTML:
6. Button Dropdown
Description: Button dropdowns allow users to select an option from a list of choices, typically used in toolbars or forms. The button dropdown can display a list of actions when clicked, providing an expandable option set.
Deprecated Classnames:
dropdown-menu--cs
dropdown-menu-button--cs
New Classnames:
href-special-link--cs
Sample CSS:
Sample HTML:
7. Icon Toggle Button
Description: An icon toggle button is a button that toggles between two states (like active/inactive) and includes an icon to visually indicate the current state. This is often used for settings, favorites, or switches.
Deprecated Classnames:
icon-toggle--cs
icon-toggle-item--cs
New Classnames:
icon-toggle-btn--cs
icon-toggle-active--cs
Sample CSS:
Sample HTML:
8. Toggle Switch
Description: Toggle switches are used for binary options, typically for settings or features that can be turned on or off. These switches offer a visual and functional representation of an active/inactive state.
Deprecated Classnames:
toggle-wrapper--cs
toggle-input--cs
New Classnames:
toggle-switch--cs
toggle-switch-active--cs
Sample CSS:
Sample HTML:
This page consolidates all classnames related to buttons, sliders, and interactive widgets. For deprecated classnames, make sure to transition to the new ones.
For more detailed implementation on how to customize form and input widgets, refer to the Customizing Sidebar Widgets section on the Sidebar Widgets Classnames page.
Last updated