Skip to main content Skip to navigation

Components: Dropdown

How to use

Displays components inside a dropdown menu. Mostly used as a menu triggered by other components, like the Select field.

Dropdown::make([
    Section::make()
        ->components([
            Link::make('Log out')
                ->icon('exit-logout')
                ->route('auth.logout')
                ->method('post'),
        ]),
])

Available methods

__construct(array $components)

Construct the Dropdown with the given components.

Dropdown::make([
    /* Some components */
]);

Inherited methods

The Dropdown component extends the base component and inherits all of its methods.

It also inherits the methods from the following traits: