package.src.vaadin-horizontal-layout.js Maven / Gradle / Ivy
/**
* @license
* Copyright (c) 2017 - 2024 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 { defineCustomElement } from '@vaadin/component-base/src/define.js';
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
/**
* `` provides a simple way to horizontally align your HTML elements.
*
* ```
*
* Item 1
* Item 2
*
* ```
*
* ### Built-in Theme Variations
*
* `` supports the following theme variations:
*
* Theme variation | Description
* ---|---
* `theme="margin"` | Applies the default amount of CSS margin for the host element (specified by the theme)
* `theme="padding"` | Applies the default amount of CSS padding for the host element (specified by the theme)
* `theme="spacing"` | Applies the default amount of CSS margin between items (specified by the theme)
*
* @customElement
* @extends HTMLElement
* @mixes ThemableMixin
* @mixes ElementMixin
*/
class HorizontalLayout extends ElementMixin(ThemableMixin(PolymerElement)) {
static get template() {
return html`
`;
}
static get is() {
return 'vaadin-horizontal-layout';
}
}
defineCustomElement(HorizontalLayout);
export { HorizontalLayout };