forked from vscode-elements/elements
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvscode-button-group.ts
More file actions
36 lines (33 loc) · 1.3 KB
/
vscode-button-group.ts
File metadata and controls
36 lines (33 loc) · 1.3 KB
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 {html, TemplateResult} from 'lit';
import {customElement} from 'lit/decorators.js';
import {VscElement} from '../includes/VscElement.js';
import styles from './vscode-button-group.styles.js';
/**
* Shows a split button, including several components in a single button. Commonly used to show a button with a dropdown to the right.
*
* @tag vscode-button-group
*
* @cssprop [--vscode-button-background=#0078d4]
* @cssprop [--vscode-button-foreground=#ffffff]
* @cssprop [--vscode-button-border=var(--vscode-button-background, rgba(255, 255, 255, 0.07))]
* @cssprop [--vscode-button-hoverBackground=#026ec1]
* @cssprop [--vscode-font-family=sans-serif] - A sans-serif font type depends on the host OS.
* @cssprop [--vscode-font-size=13px]
* @cssprop [--vscode-font-weight=normal]
* @cssprop [--vscode-button-secondaryForeground=#cccccc]
* @cssprop [--vscode-button-secondaryBackground=#313131]
* @cssprop [--vscode-button-secondaryHoverBackground=#3c3c3c]
* @cssprop [--vscode-focusBorder=#0078d4]
*/
@customElement('vscode-button-group')
export class VscodeButtonGroup extends VscElement {
static override styles = styles;
override render(): TemplateResult {
return html` <slot></slot> `;
}
}
declare global {
interface HTMLElementTagNameMap {
'vscode-button-group': VscodeButtonGroup;
}
}