stars-rating.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ---
  2. title: Star Ratings
  3. page-header: Star Ratings
  4. description:
  5. The star ratings HTML admin panel component is a user interface element that
  6. allows users to rate items using a star rating system. This component is
  7. commonly used in applications that allow users to rate products, services, or
  8. other items.
  9. libs: tabler-flags, star-rating.js
  10. menu: base.stars-rating
  11. ---
  12. <div class="row row-cards">
  13. <div class="col-md-4">
  14. <div class="row row-cards">
  15. <div class="col-12">
  16. <div class="card">
  17. <div class="card-body">
  18. <div class="h3 card-title">Basic</div>
  19. <div>{% include ui/rating.html value=4 %}</div>
  20. </div>
  21. </div>
  22. </div>
  23. <div class="col-12">
  24. <div class="card">
  25. <div class="card-body">
  26. <div class="h3 card-title">Different icon</div>
  27. <div class="space-y">
  28. {% include ui/rating.html value=4 %}
  29. {% include ui/rating.html icon="heart-filled" value=4 color="red" %}
  30. {% include ui/rating.html icon="ghost-filled" value=4 color="azure" %}
  31. {% include ui/rating.html icon="circle-filled" value=4 color="green" %}
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="col-md-4">
  39. <div class="card">
  40. <div class="card-body">
  41. <div class="h3 card-title">Custom colors</div>
  42. <div class="space-y">
  43. {% include ui/rating.html id="color" value=3 %}
  44. {% include ui/rating.html id="color-primary" color="primary" value=3 %}
  45. {% include ui/rating.html id="color-red" color="red" value=3 %}
  46. {% include ui/rating.html id="color-lime" color="lime" value=3 %}
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="col-md-4">
  52. <div class="card">
  53. <div class="card-body">
  54. <div class="h3 card-title">Custom sizes</div>
  55. <div class="space-y">
  56. {% include ui/rating.html id="size-sm" value=3 size="sm" %}
  57. {% include ui/rating.html id="size-primary" value=3 %}
  58. {% include ui/rating.html id="size-red" value=3 size="md" %}
  59. {% include ui/rating.html id="size-lime" value=3 size="lg" %}
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </div>