How to use the @material/mwc-base/base-element.js.customElement function in @material/mwc-base

To help you get started, we’ve selected a few @material/mwc-base examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github material-components / material-components-web-components / packages / top-app-bar-short / src / mwc-top-app-bar-short.ts View on Github external
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import {customElement} from '@material/mwc-base/base-element.js';
import {style} from '@material/mwc-top-app-bar/mwc-top-app-bar-css';

import {TopAppBarShortBase} from './top-app-bar-short-base';

declare global {
  interface HTMLElementTagNameMap {
    'mwc-top-app-bar-short': TopAppBarShort;
  }
}

@customElement('mwc-top-app-bar-short')
export class TopAppBarShort extends TopAppBarShortBase {
  static styles = style;
}