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

sling-web-component-button

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sling-web-component-button

## Install

  • 0.4.0
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-61.54%
Maintainers
1
Weekly downloads
 
Created
Source

sling-web-component-button

Install

npm instal sling-web-component-button

Tag

  <sling-button></sling-button>

Dependencies

  • sling-web-framework
  • sling-web-helpers

Attributes and properties

NameTypeDefault ValuesReflectToAttributeObservercallSdk
blockBooleanfalse:heavy_check_mark:
colorStringnormal:heavy_check_mark:
disabledBooleanfalse:heavy_check_mark:
sizeStringnormal:heavy_check_mark:
TypeStringnormal:heavy_check_mark:

Description

NameDescription
blockA boolean value that assigns the width: 100% CSS property to button.
colorA pre-configured value for styling of button, can be normal, primary, secondary, success, danger, warning, info, clear.
disabledDisables the button, preventing the user from clicking and changing their style to dimmed
sizeA pre-configured value for size of button, can be normal, small or big.
typeA pre-configured value for size of button, can be normal, outline or text.

Events

  • click

Description: The event is triggered when the button is clicked and passes this information to the parents.

Examples

All component examples can be emulated using the npm start sling-web-component-button command.

Use

<sling-button color="primary">Text</sling-button>

image

<sling-button block size="big" color="warning">Text</sling-button>

image

<sling-button color="danger">Text</sling-button>

captura de tela de 2018-05-23 01-48-41

FAQs

Package last updated on 30 Jun 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

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