🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

xgd-home-hero

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xgd-home-hero

![Bower version](https://img.shields.io/bower/v/xgd-home-hero.svg) [![npm version](https://badge.fury.io/js/%40vaadin%2Fxgd-home-hero.svg)](https://badge.fury.io/js/xgd-home-hero) [![Published on webcomponents.org](https://img.shields.io/badge/webcomponen

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Bower version npm version Published on webcomponents.org Build Status

<xgd-home-hero>

Provides a hero Polymer 3 / lit-element display for a homepage that is clickable.

Styling

The following custom properties and mixins are available for styling.

Custom propertyDescriptionDefault
'--accent-color'background color of the box#999999
'--hero-text-color'color of all text#ffffff
'--app-primary-color'color of the button#002299
'--hero-font-size'font size of banner title1.2em
'--hero-message-font-size'font size of the slot message1.0em

Example:

<style is="custom-style">
  xgd-home-hero {
    width: 300px;
    height: 300px;
  }
</style>

<xgd-home-hero image="https://placeimg.com/300/300/animals?t=1526148877145"
                  banner="This is the Title" button-title="XGDFalcon" action="https://xgdfalcon.com">
                  This is a description of what the location is pointing to.
                  This is a description of what the location is pointing to.
</xgd-home-hero>

<script>
  window.addEventListener('xgd-request-state-change', function(event) {
    alert(event.detail.url);
  });
</script>

The component is licensed under the MIT License

License

Demo and doc are available on https://www.webcomponents.org/element/XGDElements/xgd-browser-tabs

FAQs

Package last updated on 12 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts