Default
Seven: one bundle struck through and two more. `size` takes sm, md, lg or a number of pixels. The number is what a screen reader hears.
A count as tally marks, 1 to 99: bundles of four struck through by a fifth. The number is the accessible name, the box is exactly as big as the marks, and it is drawn on the server.
npx shadcn@latest add @wobko/tally第一次使用?先把 registry 加进 components.json。 如何安装
Seven: one bundle struck through and two more. `size` takes sm, md, lg or a number of pixels. The number is what a screen reader hears.
Add a mark and watch the bundles build. Sizes sm, md, lg; ink, blue, red and pencil pens.
Tallies beside the words they count. Each has its own accessible name ("12 votes for tea").
A <span role="img" aria-label="7"> whose box is the marks' own footprint, so it sits in a line of text or a table cell without shifting anything.
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| count | number | - | The number to show, clamped to 0..99 and rounded down. |
| size | "sm" | "md" | "lg" | number | "md" | Height of the strokes: sm 14 px, md 22, lg 34, or a number of px. |
| tone | "ink" | "blue" | "red" | "green" | "pencil" | "marker" | "orange" | "ink" | The pen. |
| weight | "fine" | "regular" | "brush" | "regular" | Fine-liner, felt tip or brush. |
| label | string | - | The accessible name. Default: the number. Say what is counted: "7 votes". |
| animate | boolean | false | Wipe the marks on, left to right, the first time they scroll into view. |
| show | boolean | true | Show or hide them. |
| delay | number | - | Milliseconds before the drawing starts. |
| seed | string | number | - | Pins the hand. |
CLI 会复制进你项目的文件。
正在加载源码