Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@myuw-web-components/myuw-badge

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@myuw-web-components/myuw-badge

![alt text](badges.png "Badge themes")

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

myuw-badge

alt text

A badge with two available themes to help users discover new widgets and content in MyUW.

Getting Started

Add the following import to your page's <head>:

<script type="module" src="https://unpkg.com/@myuw-web-components/myuw-badge@^1?module"></script>
<script nomodule scr="https://unpkg.com/@myuw-web-components/myuw-badge@^1"></script>

Important: For responsiveness to many screen sizes, ensure you have included the viewport meta tag in your application:

<meta name="viewport" content="width=device-width, initial-scale=1">

Use the component's HTML tag wherever you want:

<myuw-badge
    url=""
    dark-theme
    white-border
>
</myuw-badge>

Configurable properties via attributes

  • url: (Required) Set the URL the badge should link to (e.g. The detail page for a MyUW widget)
  • dark-theme: If this attribute is present, the badge will use the black theme (red by default)
  • white-border: If this attribute is present, the badge will have a white border (e.g. when using the badge on a dark background)

Development and contribution

To run the demo app locally and test the component, run the following commands:

$ npm install
$ npm start

FAQs

Package last updated on 19 Jun 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc