An upvote toggle with a count: the arrow crouches, springs up leaving a short trail, a blue fill rises behind the label and the count rolls up a digit.
React + HTML
חינם
עוד למטה ↓
מובנה
מה מקבלים
בהיר וכההמשתמש בצבעי ערכת העיצוב שלכם
חבילות…
גודל הקוד…
נבדק בכל שינוי
בדיקת טיפוסיםTypeScript strict
Lint ועיצוב קודESLint · Prettier
בדיקות ובנייהצילומי מסך בהיר וכהה
בדיקת אבטחהללא התראות חמורות או קריטיות
גיל החבילותכל גרסה פומבית 7 ימים לפחות
מעבד במנוחהפחות מחצי ליבה במנוחה, ≤ 30 fps
קוד
יש בעיה ברכיב הזה? שליחת משוב ›
upvote-buttonHTML
index.htmlpageThe markup to copy, between the copy-from-here comments, on a demo page.
style.cssstyleThe styles: copy them into your CSS.
script.jsscriptThe behavior: load it after the markup.
index.html
The markup to copy, between the copy-from-here comments, on a demo page.
טוען…
מתאים ל
Forums, feedback boards, comment threads and any list people rank by votes.
איך זה עובד
Press it and the arrow springs up with a trail, the button fills and the count rolls up. Press again to take the vote back.
איך משתמשים
קשרו את style.css ו-script.js מהעמוד שלכם, ואז הדביקו את הקוד מ-index.html במקום שבו הוא צריך להופיע.