Dropdown Component

The Dropdown Button component is a versatile UI element that combines a button with a dropdown menu, allowing users to select from a list of options or trigger actions.

Hover open

By using the dropdown-hover helper class, you can enable dropdown activation for mouse hover events.

Toggle dropdown

We are using the HTML <details> and <summary> tags for toggle dropdown. This approach allows for a simple and accessible way to show or hide content without requiring additional JavaScript.

Clickable dropdown

Content Position

Align Right

Use the dropdown-end helper class to align end.

Align Top

Use the dropdown-top helper class to align top.

Align Top Right

Use the dropdown-top and dropdown-end helper classes to align top right.

Branding Dropdown

You can easily use the Button Component in the Arts Oven UI to brand the dropdown button. This allows you to style the dropdown toggle without needing additional CSS.

Customizing with CSS Variables

You can customize the appearance of the component using following CSS variables.

:root {
    /* Dropdown content border width */
    --dropdown-border-width: 1px;
    /* Dropdown content border color */
    --dropdown-border-color: #FFFFFF;
    /* Dropdown content background color */
    --dropdown-background-color: #FFFFFF;
    /* Dropdown content border radius */
    --dropdown-border-radius: 5px;
    /* Dropdown content link hover */
    --dropdown-link-hover-bg: #FFFFFF;
}

Refer to the Customization Guide to learn more about how to use these variables to customize the components.

Contribute ideas!

Share Your Ideas! While we can’t guarantee that every request will be added, we will definitely consider your suggestions for future updates.

On this page