⭐⭐⭐⭐⭐
This is a project that I have done with Lit Element and Web Components technologies to learn and practice. I have made a component called <cris-rating>
to build a star ranking for any web page that needs it.
- Create a component called
<cris-rating></cris-rating>
- Paint title, with the text attribute or set a default property.
- Paint as many stars as you want with the star-count attribute.
- Use the rating to fill in that number of stars.
- If you have a rating, a text box should appear below to leave more comments.
- Visual Studio Code
- HTML
- Java Script
- Lit Element
- Web Components
npm i cris-rating
<script type="module">
import 'cris-rating/cris-rating.js';
</script>
<cris-rating></cris-rating>
To scan the project for linting and formatting errors, run
npm run lint
To automatically fix linting and formatting errors, run
npm run format
To run a local instance of Storybook for your component, run
npm run storybook
To build a production version of Storybook, run
npm run storybook:build
For most of the tools, the configuration is in the package.json
to minimize the amount of files in your project.
If you customize the configuration a lot, you can consider moving them to individual files.
npm start
To run a local development server that serves the basic demo located in demo/index.html
Go for it! And if you make something pretty, please show me
I'm an student and as I stated before am learning a whole lot of Front End Developing, so, if you have any idea that I could develope please tell me so and I will try to.