UNPKG

@scoped-vaadin/select

Version:
40 lines (35 loc) 1.27 kB
/** * @license * Copyright (c) 2017 - 2025 Vaadin Ltd. * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ */ import { html, PolymerElement } from '@polymer/polymer/polymer-element.js'; import { ButtonMixin } from '@scoped-vaadin/button/src/vaadin-button-mixin.js'; import { defineCustomElement } from '@scoped-vaadin/component-base/src/define.js'; import { registerStyles, ThemableMixin } from '@scoped-vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; import { valueButton } from './vaadin-select-value-button-core-styles.js'; registerStyles('vaadin24-select-value-button', valueButton, { moduleId: 'vaadin-select-value-button-styles' }); /** * An element used internally by `<vaadin24-select>`. Not intended to be used separately. * * @customElement * @extends HTMLElement * @mixes ButtonMixin * @mixes ThemableMixin * @protected */ class SelectValueButton extends ButtonMixin(ThemableMixin(PolymerElement)) { static get is() { return 'vaadin24-select-value-button'; } static get template() { return html` <div class="vaadin-button-container"> <span part="label"> <slot></slot> </span> </div> `; } } defineCustomElement(SelectValueButton);