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

@dreamworld/dw-button

Package Overview
Dependencies
Maintainers
4
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreamworld/dw-button

A button web component created using [`mwc-button`](https://www.webcomponents.org/element/@material/mwc-button)

  • 3.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
Source

dw-button

A button web component created using mwc-button

Demo

Install

npm install @dreamworld/dw-button

Usage

import '@dreamworld/dw-button/dw-button.js';

<dw-button label="OK"></dw-button>

Colors

Button is rendered by default in Primary color. It can be rendered in secondary, error or text color too. For that add corresponding class (secondary, error and text) to the button. e.g.

<dw-button label="OK" class="secondary"></dw-button>

it's actually main reason for creating extension of mwc-button.

Styles

  • To show button in outlined style add outlined attribute.
  • To show button in filled style, add filled attribute.
  • Additionally raised attribute can be used to show elevated button. As outlined button will never be raised, this doesn't work with outlined style.

Disable

Add disabled attribute to make a button disabled.

Known Issues

  • It's not possible to show Normal + Raised button in Primary color. It's due to the Custom CSS Property names used by mwc-button element.

FAQs

Package last updated on 24 Nov 2023

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