@minzejs/elements
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

@minzejs/elements

Helpers for native web component development.

Usage

Steps

  1. Import component(s) from the @minzejs/elements package.
  2. Register the imported component(s).
  3. Use the component(s).

Example

npm install @minzejs/elements
import { modules, defineAll } from '@minzejs/elements'
defineAll(modules)
<element-name></element-name>

Elements

MinzeElementSwitch

Description

Switch between unique slotted elements from the browser window, with a toggle displayed at the bottom of the screen.

Example

import { MinzeElementSwitch } from '@minzejs/elements/dist/lib/minze-element-switch.js'

MinzeElementSwitch.define()
<minze-element-switch>
  <unique-element></unique-element>
  <unique-element-two></unique-element-two>
  <unique-element-three></unique-element-three>
  <!-- etc ... -->
</minze-element-switch>

Package Sidebar

Install

npm i @minzejs/elements

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

18.1 kB

Total Files

8

Last publish

Collaborators

  • sergejcodes