https://github.com/riaevangelist/nozaki-components
modern vanilla components designed with ES6+ ESM first works in all modern browsers without transpiling.
https://github.com/riaevangelist/nozaki-components
browser es6 es7 esm esmodule esmodules javascript modern webcomponent webcomponents
Last synced: about 1 year ago
JSON representation
modern vanilla components designed with ES6+ ESM first works in all modern browsers without transpiling.
- Host: GitHub
- URL: https://github.com/riaevangelist/nozaki-components
- Owner: RIAEvangelist
- License: mit
- Created: 2021-07-05T20:29:22.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-12-14T07:01:36.000Z (over 3 years ago)
- Last Synced: 2025-05-01T17:05:07.540Z (about 1 year ago)
- Topics: browser, es6, es7, esm, esmodule, esmodules, javascript, modern, webcomponent, webcomponents
- Language: CSS
- Homepage:
- Size: 2.01 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Nozaki-Components | 野崎コンポーネント
[](https://github.com/sponsors/RIAEvangelist)
Modern Vanilla component designed with ES6+ ESM first, meant for developers and engineers, not script kiddies. These components work in all modern browsers without transpiling and those browsers have 94-97% global penetration. You can of course transpile these components if your business or project has a good usecase that needs transpiling.
The modules have strong typing through the use of the `stong-type` npm module.
Nozaki, its not just a framework... its a way of life! - 野崎さん
# Handmade DOCS for your pleasure
I take my time and write my docs by hand. I put in the extra effort because it is not enough that things are "just documented", they need to be documented well and in a way you can understand. This framework/library is made by humans for humans. If something is confusing, file an issue, unlike other frameworks, its ok if you don't look through the closed issues. I won't make you feel like a moron for asking a question. My momma told me that the only dumb question was the one I didn't ask, so please, feel free to ask for guidance. If this framework gets traction, there will be a community of humans supporting it, with love.
[nozaki-components documentation](/docs/README.md)
# Live Demo Server
Click my friend Haru, if you dare...
[](http://nozaki.ninja)
If you dare not click the Haru, you are truely wize, visit [nozaki.ninja](http://nozaki.ninja) to see the live demos in safety.

# Set Up
Once you have included `nozaki-components` in your app/site/project, all you have to do is import the components you would like to use.
To include a `nozaki-list` on a page, it would look like this :
```html
Nozaki Components Header Example
//import components used in the page
import '/components/NozakiList.js';
```

# Live Local Demo
Run `npm start` to spawn a server at [http://localhost:8888](http://localhost:8888) or `npm run start-public` to start the demo server on port `80`
# Nozaki Patterns
These are global patterns that all `nozaki-components` follow.
|property|description|
|--------|-----------|
|`data-class` attribute|The contents of this attribute are appended to the `class` attribute `Shadow Root` main element. This is particularly useful when you want to add additional classes from the [W3.css](https://www.w3schools.com/w3css/) lib.|
|`data-style` attribute|the styles put in this attribute will be used as the last styles before the main content of the `Shadow Root`. This means they will be the most important. |
# nozaki webcomponent cli
Install the `nozaki` cli by running `npm i -g nozaki`.
It will help you to create your own native web components or to extend the `nozaki-components`! The [`nozaki` repo](http://github.com/RIAEvangelist/nozaki) has docs on how to use the cli. For help, you can also just run the command `nozaki` after you have installed it.
# Refrences
[MDN Using Web Component Lifecycle Callbacks](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks)
# Explicit Dependancies (already included)
* [`nozaki-colors`](https://github.com/RIAEvangelist/nozaki-colors) An extremely lightweight color and styling module for the console/terminal/commandline
* [`strong-type`](https://github.com/RIAEvangelist/strong-type) Strong typing for vanilla JS
* [W3.css](https://www.w3schools.com/w3css/) minimal css library from [W3schools.com](https://www.w3schools.com/)