Giter Club home page Giter Club logo

wizard-italia-component's Introduction

Wizard Italia component

Opinionated component to create your guided wizard.

Installation

yarn add wizard-italia-component

or

npm install wizard-italia-component

Use it as a Web Component

Customization engine lays on Oruga, check the documentation for more info

<link rel="stylesheet" href="module_path/wizard-italia.css">

<wizard-italia 
    matomo-site-id="wBEpDzz0yL"
    configuration-url="https://raw.githubusercontent.com/italia/wizard-italia/main/demo/tree.json"
></wizard-italia>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<script src="module_path/wizard-italia.umd.js"></script>
<script>
  customElements.whenDefined("wizard-italia").then(() => {
    document.querySelector('wizard-italia').styleConfig = {
      iconPack: 'bs',
      iconComponent: 'bs-icon',
      button: {
        rootClass: 'btn',
        outlinedClass: 'btn-outline-',
        disabledClass: 'btn-disabled',
        variantClass: (variant, context) => (!context.props.outlined ? `btn-${variant}` : ''),
      }
    }
  })
</script>

Development

Install dependencies using

yarn install

Compiles and hot-reloads demo for development

yarn serve

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

Compiles and minifies for production (lib and web component)

yarn build-all

Build web component

yarn wc

Launch web component demo

Run

yarn prepare-wc-demo

then go inside demo folder and run a dev server, e.g.

python -m SimpleHTTPServer 80

Contributing

Every contribution is welcome!

Here is a list of users who contributed to this repository:

wizard-italia-component's People

Contributors

astagi avatar bfabio avatar dependabot[bot] avatar

Stargazers

Cyberknight avatar Roman Hossain Shaon avatar  avatar  avatar

Watchers

Lucio Pileggi avatar  avatar Paolo De Rosa avatar Alessandro Ranellucci avatar James Cloos avatar Giuseppe De Marco avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.