Elizabeth Mitchell 9431c16431 feat(divider): add divider component
PiperOrigin-RevId: 504300015
2023-01-24 09:41:31 -08:00

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;
}