Skip to content

OcDrop component

Description

The OcDrop component displays given content or action items inside a dropdown menu.

Examples

Default

The most common use case of the component is in combination with a button. It's important that the button id matches the toggle attribute of the dropdown.

Action items

The following example shows how to use the component to display action items.

Mobile

The mobile version of the drop uses a bottom drawer to display its content. It requires a portal to app.runtime.bottom.drawer to be set up in your application layout.

You can specify a title for the bottom drawer using the title prop.

If you want to disable the bottom drawer behavior on mobile devices, you can set the enforceDropOnMobile prop to true.

Properties

Emits

Slots