mirror of
https://github.com/material-components/material-web.git
synced 2024-09-17 16:48:02 +03:00
7fc17c99c9
BREAKING CHANGE: Rename `@material/web/divider/lib` to `@material/web/divider/internal`. Prefer not using internal files. PiperOrigin-RevId: 550044361
31 lines
697 B
TypeScript
31 lines
697 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2023 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {LitElement} from 'lit';
|
|
import {property} from 'lit/decorators.js';
|
|
|
|
/**
|
|
* A divider component.
|
|
*/
|
|
export class Divider extends LitElement {
|
|
/**
|
|
* Indents the divider with equal padding on both sides.
|
|
*/
|
|
@property({type: Boolean, reflect: true}) inset = false;
|
|
|
|
/**
|
|
* Indents the divider with padding on the leading side.
|
|
*/
|
|
@property({type: Boolean, reflect: true, attribute: 'inset-start'})
|
|
insetStart = false;
|
|
|
|
/**
|
|
* Indents the divider with padding on the trailing side.
|
|
*/
|
|
@property({type: Boolean, reflect: true, attribute: 'inset-end'})
|
|
insetEnd = false;
|
|
}
|