material-web/divider/internal/divider.ts
Andrew Jakubowicz 7fc17c99c9 fix(divider)!: rename "lib" directory to "internal"
BREAKING CHANGE: Rename `@material/web/divider/lib` to `@material/web/divider/internal`. Prefer not using internal files.

PiperOrigin-RevId: 550044361
2023-07-21 14:03:22 -07: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;
}