1.0.9 • Published 12 months ago
custom-steps v1.0.9
Custom Steps
webComponent steps
Install
npm i custom-steps
Browser
Script tag
<script src="./node_modules/custom-steps" defer ></script>
Webpack / Vite / Browserify / Babel
import 'custom-steps'
Usage
<custom-steps>
<div data-active="true" style="width: 500px;height: 120px;margin:50px auto;border: 1px solid black;" ></div>
<div data-active="false" style="width: 500px;height: 120px;margin:50px auto;border: 1px solid black;" ></div>
<div data-active="true" style="width: 500px;height: 120px;margin:50px auto;border: 1px solid black;" ></div>
</custom-steps>
Slots Property
Property | Type | Value |
---|---|---|
data-active | string | 'true' | 'false' |