1
0
mirror of https://github.com/flarum/core.git synced 2025-10-29 06:26:17 +01:00
Files
php-flarum/js/dist-typings/common/components/SplitDropdown.d.ts
flarum-bot 3d62a6af27 Bundled output for commit d268894e61
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-12-27 19:02:33 +00:00

17 lines
534 B
TypeScript

/**
* The `SplitDropdown` component is similar to `Dropdown`, but the first child
* is displayed as its own button prior to the toggle button.
*/
export default class SplitDropdown extends Dropdown {
/**
* Get the first child. If the first child is an array, the first item in that
* array will be returned.
*
* @param {unknown[] | unknown} children
* @return {unknown}
* @protected
*/
protected getFirstChild(children: unknown[] | unknown): unknown;
}
import Dropdown from "./Dropdown";