Component description goes here...
npm install @vrembem/[component]
@use "@vrembem/[component]";
import [Component] from '@vrembem/[component]';
const [component] = new [Component]({ autoInit: true });
Markup description goes here...
<!-- Example -->
Data attribute description goes here...
<!-- Example -->
Modifier description goes here...
<!-- Example -->
Available Variations
[component]_[key]_[value]
Variable | Default | Description |
---|---|---|
$prefix-block |
null |
String to prefix blocks with. |
$prefix-element |
"__" |
String to prefix elements with. |
$prefix-modifier |
"_" |
String to prefix modifiers with. |
$prefix-modifier-value |
"_" |
String to prefix modifier values with. |
Mixin description goes here...
Parameters
Variable | Default | Type | Description |
---|---|---|---|
$param1 |
— | string |
— |
$param2 |
true |
boolean |
— |
Example
// SCSS Input
// ...
// CSS Output
// ...
Maybe a description about the components API...
Key | Default | Description |
---|---|---|
autoInit |
false |
Automatically initializes the instance. |
Event description goe here...
Example
document.addEventListener('event:name', (event) => {
// What gets returned?
// event.target
// event.detail
}, false);
Maybe a description about methods goes here...
Method description goes here...
Parameters
Variable | Default | Type | Description |
---|---|---|---|
param |
— | string |
— |
Example
const [component] = new [Component]();
[component].init();
// -> Array []