Download the repo, Install node and npm, then, in terminal at the repo's directory, do npm run dev. This should open your browser and let you start coding!
In the components folder, duplicate the "theme" folder and call it "button".
Rename all files inside to "button.tsx" or "button.scss"
Update the tag value in the @Component to "techomaha-button"
Update the style value in the @Component to "button.scss"
Update the class name to "Button"
Update the scss file. We can optimize everything later, just do your best to make a button!
And do not hesitate to reach out to @splitinfinities if you have any questions at all.
We'll use it by writing html:
<techomaha-button type="button|submit|link" href="#" value="blah" emoji="📦" class="outline|invert"></techomaha-button>
Note, step zero needs instructions to change to the assets directory, e.g.:
Download the repo, Install node and npm, then, in terminal at the repo's directory, do cd assets && npm run dev. This should open your browser and let you start coding!
We need to make a button component.
How to:
npm run dev
. This should open your browser and let you start coding!If you get lost, here it the documentation for Stencil: https://stenciljs.com/docs/intro/
And do not hesitate to reach out to @splitinfinities if you have any questions at all.
We'll use it by writing html:
<techomaha-button type="button|submit|link" href="#" value="blah" emoji="📦" class="outline|invert"></techomaha-button>