mirror of
https://github.com/material-components/material-web.git
synced 2026-03-09 00:09:23 +08:00
30 lines
592 B
TypeScript
30 lines
592 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {html, TemplateResult} from 'lit';
|
|
import {ClassInfo} from 'lit/directives/class-map.js';
|
|
|
|
import {Button} from './button';
|
|
|
|
/**
|
|
* @soyCompatible
|
|
*/
|
|
export class OutlinedButton extends Button {
|
|
/** @soyTemplate */
|
|
protected override getRenderClasses(): ClassInfo {
|
|
return {
|
|
...super.getRenderClasses(),
|
|
'mdc-button--outlined': true,
|
|
};
|
|
}
|
|
|
|
override renderOutline(): TemplateResult {
|
|
return html`
|
|
<span class="mdc-button__outline"></span>
|
|
`;
|
|
}
|
|
}
|