@cds/core
Version:
Clarity Design System - common components, themes, and utilties
34 lines (33 loc) • 926 B
TypeScript
import { LitElement } from 'lit';
/**
* Dropdown, example test component. Do not use in production.
*
* ```typescript
* import '@cds/core/test-dropdown';
* ```
*
* ```html
* <cds-test-dropdown label="click me!">
* Hello World
* </cds-test-dropdown>
* ```
*
* @slot - Content slot for dropdown content
* @event {boolean} openChange - notify open state change of dropdown
* @cssprop --border-color
* @cssprop --background-color
* @cssprop --text-color
*/
export declare class CdsTestDropdown extends LitElement {
private openChange;
private _open;
get open(): boolean;
/** Set open to open or close the dropdown */
set open(value: boolean);
/** Set the dropdown button text */
label: string;
static get styles(): import("lit").CSSResultGroup[];
render(): import("lit-html").TemplateResult<1>;
/** Toggle the current open state of the dropdown */
toggle(): void;
}