UNPKG

@synergy-design-system/react

Version:
41 lines (40 loc) 2.15 kB
import Component from '@synergy-design-system/components/components/dropdown/dropdown.component.js'; import { type EventName } from '@lit/react'; import type { SynShowEvent } from '@synergy-design-system/components'; import type { SynAfterShowEvent } from '@synergy-design-system/components'; import type { SynHideEvent } from '@synergy-design-system/components'; import type { SynAfterHideEvent } from '@synergy-design-system/components'; /** * @summary Dropdowns expose additional content that "drops down" in a panel. * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-dropdown--docs * @status stable * @since 2.0 * * @dependency syn-popup * * @slot - The dropdown's main content. * @slot trigger - The dropdown's trigger, usually a `<syn-button>` element. * * @event syn-show - Emitted when the dropdown opens. * @event syn-after-show - Emitted after the dropdown opens and all animations are complete. * @event syn-hide - Emitted when the dropdown closes. * @event syn-after-hide - Emitted after the dropdown closes and all animations are complete. * * @csspart base - The component's base wrapper, an `<syn-popup>` element. * @csspart base__popup - The popup's exported `popup` part. Use this to target the tooltip's popup container. * @csspart trigger - The container that wraps the trigger. * @csspart panel - The panel that gets shown when the dropdown is open. * * @animation dropdown.show - The animation to use when showing the dropdown. * @animation dropdown.hide - The animation to use when hiding the dropdown. */ export declare const SynDropdown: import("@lit/react").ReactWebComponent<Component, { onSynShow: EventName<SynShowEvent>; onSynAfterShow: EventName<SynAfterShowEvent>; onSynHide: EventName<SynHideEvent>; onSynAfterHide: EventName<SynAfterHideEvent>; }>; export type { SynShowEvent } from '@synergy-design-system/components'; export type { SynAfterShowEvent } from '@synergy-design-system/components'; export type { SynHideEvent } from '@synergy-design-system/components'; export type { SynAfterHideEvent } from '@synergy-design-system/components';