Toggle the active state for the component. With toggle it is the controlled active state of the toggle button. For the uncontrolled toggle use defaultActive; manage the controlled state from onClick. |
Component used for the root node. Either a string to use a HTML element or a component. |
Adds a custom class name to the React Menu toggle. |
Sets the color context of the component to one of CoreUI’s themed colors. Use theme instead — color renders the same theme-{color} class and loses to theme when both are set. |
Wire the menu to a toggle of your own instead of rendering a button. The single child element receives the toggle behavior and keeps its own markup and classes. |
The initial active state of an uncontrolled toggle button — read once on mount. Ignored when active is set. |
Toggle the disabled state for the component. |
The href attribute specifies the URL of the page the link goes to. |
Square the button for a lone icon - remember to give it an aria-label. |
Render the button as a link. It behaves like a button but takes its color from the link color rather than from a theme, so theme and variant do not apply to it. |
The role attribute describes the role of an element in programs that can make use of it, such as screen readers or magnifiers. |
Select the shape of the component. |
Size the component extra small, small or large. |
Renders the toggle as the second half of a split button, so only it opens the menu. |
Sets the color context of the component to one of CoreUI’s themed colors. Pair it with variant for the shape — a button is a shape plus a colour. The class may also sit on any ancestor, so theming a toolbar themes the buttons inside it. |
Make the button behave as a toggle button. It manages its own active/pressed state, toggling it on click and reflecting it via the aria-pressed attribute. |
Set the shape of the button — how much ink it uses. Defaults to solid when theme is set. |