百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
I

interior

> 前端框架
开源

用于 React 的微型交互,专为点击后的半秒钟而构建

381 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

用于 React 的微型交互,专为点击后的半秒钟而构建

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.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptanimationmicro-interactionsmotionreact

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架