And then they are ready be used just like any other HTML tag.
NOTE
Importing the elements from the UI package will define them in the global CustomElementsRegistry, which makes them available to be used like any normal HTML tag. You can read more about custom elements here.
Setup
WARNING
This guide assumes that you have scaffolded a hApp with the TNESH stack template.
This will do the following:
github:darksoil-studio/comments-zomeflake input in yourflake.nix.commentscoordinator and integrity zome packages to thedna.nixthat you select.@darksoil-studio/comments-zomeas a dependency of your UI package.<comments-context>element at the top level of your application.That's it! You have now integrated the
commentscoordinator and integrity zomes and their UI into your app!Now, choose which elements you need and import them like this:
And then they are ready be used just like any other HTML tag.
NOTE
Importing the elements from the UI package will define them in the global
CustomElementsRegistry, which makes them available to be used like any normal HTML tag. You can read more about custom elements here.Example
You can see a full working example of the UI working in here.