Repository navigation
Releases
v1.3.1 — correct props tables
A documentation fix: the Props table now renders correctly for every component.
Fixed
- Props whose type is a union — anything like
"cover" | "contain"or"stay" | "restore" | "creased"— broke the table in 64 of 88 component guides, splitting cells and shifting the columns. Every pipe is now escaped, so the type stays in its own cell and reads as"cover" | "contain"on GitHub. - 131 table rows across those 64 guides were repaired. Component code,
meta.jsonandtranslations/are unchanged.
Full diff: v1.3.0...v1.3.1
v1.3.0 — eight new components
Eight new components across inputs, actions, navigation, status and showcase; the library now holds 88 components in five categories.
New components
- Slingshot — a slingshot toy: pull the ball back in its elastic socket, let go, and it flies on an arc, bounces off the stage's own edges and settles back into the socket.
- Toast Stack — three toasts that always stay stacked, the newest in front with a sliver of the two behind it, fanning open into a list on hover and gathering back when the pointer leaves.
- Voice Note — a hold-to-record voice note: the pill opens into a live wave, sliding right throws the take away, and what you keep becomes a clip with a scrubbable wave.
- OTP — four or six cells and a caret that take a one-time code: a right code draws the cells together until they fuse into one capsule that says verified, a wrong one shivers and drains.
- Favicon Search — a search field that reads a website URL, extracts its domain, and fades that site's favicon into the field as you type; three fallback sources, and
faviconSrcoverrides them. - File Tree — an animated file explorer with spring folder expand/collapse, a hover highlight that glides between rows, and automatic file-type icons.
- Pinned List — a list where pinning an item lifts it into its own section with a spring layout animation, reusing the same DOM node so keyboard focus stays on the toggle.
- Notion Mention Link — a link mention that opens a rich preview card on hover or keyboard focus, with the card data supplied by you or by an optional same-origin endpoint.
Fixes and polish
- One family colour across the demos.
- Slingshot stage wording rewritten and the voice-note cross note reworded.
autoPreviewdocumented on Slingshot, Toast Stack, Voice Note and OTP.- The default Invite Card image is served as webp.
- The guard now catches TSX syntax, typography and index drift.
Full diff: v1.2.0...v1.3.0
v1.2.0 — testimonial batch
Four testimonial components, and scale-aware dragging across the library.
New components
- Timeline Track — a horizontal milestone gallery; the focused card opens wide on a ruled track and every move glides on a soft spring.
autoplay/intervalincluded. - Testimonial Drawer — a wooden file drawer of reviews; the front card rises, tabs wait behind, the stack slides on a short spring. Warm default palette and a
cardsoverride for the stack. - Pinfold — a pinboard of paper notes that sway, drag with momentum and stay where they are dropped; shuffle/tidy are host-driven through
action+actionNonce. - Pennant — a strip of vertical testimonial flags; the open one unfolds into a full quote card with photo, stars and a counter.
Fixes
- Dragging is scale-aware: a drag follows the pointer 1:1 inside scaled frames.
- Pinfold clamps notes by their layout box, starts from the visible position when a gliding note is grabbed, and no longer lifts on a plain click.
- Timeline Track no longer breaks when pointer capture is unavailable.
Full diff: v1.1.0...v1.2.0
v1.1.0
New components
Four additions, each a single file you copy and own:
premium-paywall— a support card that lets the reader pick the amount: a yearly / one-time switch, a price that rolls one digit at a time, and a detent slider with rubber-band ends and a caption that crossfades on every stop.discrete-tabs— a row of icon pills where the active pill widens to reveal its label, with the pills reflowing on a spring and the label materialising out of a blur.filter-menu— a round filter button that grows into a panel of filter rows, while a second circle beside it carries the icon of the active filter.scan-document— a scan button that folds open a small paper card, flips it twice and sweeps a beam over both faces, then reports the result.
Each ships with Persian copy, RTL-first geometry, keyboard support and a prefers-reduced-motion path.
Repository sync
Every component in this repository was regenerated from the site, so all 76 are back at their latest version — including the earlier accordion-os fix. node scripts/check.mjs is green: 76 components, 274 files.
Notes
filter-menuandscan-documentcarry anautoPreviewprop. It is a site-preview convenience only (the panel opens and folds back on its own; the scan runs and repeats) and is off by default.- Install is unchanged:
npx shadcn@latest add @farsify/premium-paywallFull diff: v1.0.1...v1.1.0
v1.0.1
Fix
accordion-os — the open panel no longer jumps in scaled frames.
- The claim's height is animated in CSS (
grid-template-rows: 0fr → 1fr) instead of being measured bymotion. Inside a scaled frame (transform: scale(...)— a gallery card, a preview stage) that measurement came back scaled down, so the panel stopped at half of its text height and then snapped open at the end. - A closing pill keeps its own label width again: the width is CSS-only now (
290pxopen,fit-contentclosed) instead of amotionanimation that readautowhile the claim was still mounted, leaving the closed pill narrower than its own text. - No API change; props, defaults and install stay the same.
Install is unchanged:
npx shadcn@latest add @farsify/accordion-osFull diff: v1.0.0...v1.0.1