Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @smarthtmlelements/smart-button with all npm packages installed. Try it out:

@smarthtmlelements/smart-button lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("@smarthtmlelements/smart-button/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@smarthtmlelements/smart-button v4.5.0

Smart Button

Published on webcomponents.org

<smart-button>

Live Demo ↗ | Documentation ↗ | Installation ↗

<smart-button> is a Custom HTML Element providing an alternative of the standard button, part of the Smart HTML Elements.

```html Click Me ```

Screenshot of smart-button, using the Material theme

Getting Started

Smart HTML Elements components documentation includes getting started, customization and api documentation topics.

Getting Started Documentation | CSS Documentation | API Documentation

The file structure for Smart HTML Elements

  • source-minified/

    Javascript files.

  • source-minified/styles/

    Component CSS Files.

  • demos/

    Demo files

Running demos in browser

  1. Fork the Smart-HTML-Elements-Core repository and clone it locally.

  2. Make sure you have npm installed.

  3. When in the Smart-HTML-Elements-Core directory, run npm install and then bower install to install dependencies.

  4. Run a localhost or upload the demo on a web server. Then run:

  • /demos/smart-button/smart-button-overview.htm

Following the coding style

We are using ESLint for linting JavaScript code.

Creating a pull request

  • Make sure your code is compliant with ESLint
  • Submit a pull request with detailed title and description
  • Wait for response from one of our team members

License

Apache License 2.0

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free