-
Notifications
You must be signed in to change notification settings - Fork 2
/
dropdown-item.ts
36 lines (33 loc) · 1.16 KB
/
dropdown-item.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { styles } from './themes/dropdown-item.base.css.js';
import { all } from './themes/item.js';
import { styles as shared } from './themes/shared/item/dropdown-item.common.css.js';
import { themes } from '../../theming/theming-decorator.js';
import { registerComponent } from '../common/definitions/register.js';
import { IgcBaseOptionLikeComponent } from '../common/mixins/option.js';
/**
* Represents an item in a dropdown list.
*
* @element igc-dropdown-item
*
* @slot prefix - Renders content before the item's main content.
* @slot - Renders the item's main content.
* @slot suffix - Renders content after the item's main content.
*
* @csspart prefix - The prefix wrapper.
* @csspart content - The main content wrapper.
* @csspart suffix - The suffix wrapper.
*/
@themes(all)
export default class IgcDropdownItemComponent extends IgcBaseOptionLikeComponent {
public static readonly tagName = 'igc-dropdown-item';
public static override styles = [styles, shared];
/* blazorSuppress */
public static register() {
registerComponent(this);
}
}
declare global {
interface HTMLElementTagNameMap {
'igc-dropdown-item': IgcDropdownItemComponent;
}
}