Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/manuelernestog/bootstrap-multi-steps-component

Multi Steps Form Component for Bootstrap
https://github.com/manuelernestog/bootstrap-multi-steps-component

bootstrap component form ui-components

Last synced: 12 days ago
JSON representation

Multi Steps Form Component for Bootstrap

Awesome Lists containing this project

README

        

# Multi Steps Form Component for Bootstrap

Easily create a multi-step form for bootstrap.

- Bootstrap like sintaxis component
- No Js configuration required
- Installation with CDN

## Demo

https://manuelernestog.github.io/bootstrap-multi-steps-component/

## Requirements

Before include multi-steps-form you should install [Bootstrap](https://getbootstrap.com/) in your project.

## Installation

Simply include CDN file in your project. Put the CSS file inside `` tag and the Js file in the bottom of your `` tag.

```

...

```

## Usage

``` html



...
Next


...
Back


```

Create a main `

` tag with class `multi-steps-form`. The class `faded` is optional, this one enable the fade effect when you move through the steps.

Inside the `multi-steps-form` tag create a `

` tag with class `step` for step, add a ID for each steep.

For change between steps creat a tag with class `step-link` and add the attribute `data-bs-target="[step_id]"`.

You can also move between steps using Javascript.

``` javascript
const multiStepForm = new MultiStepForm("#form-container");

document.getElementById("buttonId").addEventListener("click", () => {
...
multiStepForm.show("#step3");
});
```

## Contribution

Suggestions and pull requests are welcomed!