ddoemonn
interior
micro-interactions for react, built for the half-second after a click
Documentation snapshot
README 快照
本页保存的是公开项目资料快照,阅读过程不需要连接 GitHub。
interior[.]dev
Micro-interactions for React, built for the half-second after a click.
Everybody builds these components. Almost nobody finishes them. The missing twenty percent is always the same three things: a jump, a restart, an animation that ignores the person watching it. This set ships that last twenty percent.
How it works
There is no package. Every component is one file in
components/interior/ that you copy into your project.
Each file exports two things:
- a headless hook (
useX) that owns all the behaviour and touches zero class names - a styled component (
X) built on the hook, as an example you can keep or replace
The behaviour lives entirely in the hook, so reskinning a component to your own
design language costs nothing but classes. The only dependency is
motion.
The idea
Trust is won in the half-second after a click, and lost in exactly the same place. A button that resizes when its label changes, a list that jumps as it loads, a drag that gets stuck because the tab lost focus: none of these are bugs anyone files, but every one of them teaches the person to stop believing the interface.
So every component here is argued out to the frame. Nothing moves unless
something happened; motion that models a physical process obeys that process
instead of taste; every state the component can reach has its space reserved
before it arrives; and every gesture knows all the ways it can be abandoned.
The keyboard is not a fallback but a second complete implementation, and under
prefers-reduced-motion the information still arrives; only the trip is
skipped.
Running the docs
bun install
bun run dev
The design language behind every decision lives in DESIGN.md.
Official distribution
获取与安装
暂未发现可确认的官方软件包地址
当前 README 快照没有出现 npm、PyPI、Crates.io、pub.dev 等官方包页链接。本站不会根据仓库名称猜测下载地址。
本站不托管项目文件;需要安装时,请以项目维护者发布的官方文档为准。
Before installing
使用前核验
本站保存公开资料用于阅读,不代表安全审计或功能背书。安装前请核对许可证、依赖来源和发布签名,不要直接运行来源不明的二进制文件或高权限脚本。