@vaadin/board
Version:
Polymer element to create flexible responsive layouts and build nice looking dashboard.
57 lines (53 loc) • 1.96 kB
TypeScript
/**
* @license
* Copyright (c) 2000 - 2025 Vaadin Ltd.
*
* This program is available under Vaadin Commercial License and Service Terms.
*
*
* See https://vaadin.com/commercial-license-and-service-terms for the full
* license.
*/
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
import { BoardRowMixin } from './vaadin-board-row-mixin.js';
/**
* `<vaadin-board-row>` is a web component that together with `<vaadin-board>` component allows
* to create flexible responsive layouts and build nice looking dashboard.
*
* Each row can contain up to four elements (fewer if colspan is used) and is automatically responsive.
* The row changes between `large`, `medium` and `small` modes depending on the available width and
* the set breakpoints.
*
* In `large` mode, typically all content is shown side-by-side, in `medium` half of the content is
* side by side and in `small` mode, content is laid out vertically.
*
* The breakpoints can be set using custom CSS properties.
* By default the breakpoints are `small: <600px`, `medium: < 960px`, `large >= 960px`.
*
* ```html
* <vaadin-board>
* <vaadin-board-row>
* <div>This could be chart 1</div>
* <div>This could be chart 2</div>
* <div>This could be chart 3</div>
* <div>This could be chart 4</div>
* </vaadin-board-row>
* </vaadin-board>
* ```
*
* ### Styling
*
* The following custom properties are available for styling:
*
* Custom property | Description | Default
* ----------------|-------------|-------------
* `--vaadin-board-width-small` | Determines the width where mode changes from `small` to `medium` | `600px`
* `--vaadin-board-width-medium` | Determines the width where mode changes from `medium` to `large` | `960px`
*/
declare class BoardRow extends BoardRowMixin(ElementMixin(HTMLElement)) {}
declare global {
interface HTMLElementTagNameMap {
'vaadin-board-row': BoardRow;
}
}
export { BoardRow };