React components where each control is one shape that moves with its state. A control morphs between its states, content inside it blurs out and in, and drags follow the pointer and keep their speed when you let go. Colors, type, radii, focus and motion speed are CSS variables you can override. All text and data come in as props, with English defaults.
npm install tensileTensile needs React 19 and React DOM 19. Motion installs with it. Your app doesn't need Tailwind; if it uses Tailwind 4, tensile/tailwind.css brings the tokens into your own classes.
import "tensile/reset.css"; // optional, if your app has no reset
import "tensile/styles.css";
import { Toggle } from "tensile";
export default function App() {
return <Toggle label="Notifications" />;
}The Toggle keeps its own state. Pass checked and onCheckedChange to keep it in yours.
- Get started
- Styling and tokens, including dark mode
- Motion
- Forms
- Accessibility
- Responsive behavior
- Patterns and recipes
- Known limitations
- Next.js, React Router, Vite
- All components, each with live demos, props and keys
- llms.txt and llms-full.txt for AI tools
MIT © 2026 Sébastien Graf. The bundled Geist fonts keep their SIL Open Font License; see THIRD_PARTY_NOTICES.
Use Node 24 and npm.
npm ci
npm run storybooknpm run sitestarts the documentation site.npm run buildbuilds the package intodist/.npm run checkruns types, unit tests, consumer checks, browser scenarios, and the docs build.
See Contributing for setup and verification, Architecture for component guidelines, and Releasing for the release process.
| Path | Contents |
|---|---|
src/ |
Shared foundations and public exports |
src/components/ |
Components grouped by responsibility, with stories, docs, and demos |
src/examples/ |
Pages composed from public components |
site/ |
Documentation and landing page |
docs/ |
Storybook guides and contributor documentation |
examples/ |
Vite and Next.js package consumers |
tests/keyboard/ |
Browser interaction fixtures and their runner |
scripts/ |
Documentation generation and build tools |
npm run docs:generate derives API references and package statistics from the source. npm run build:site also renders static documentation pages. See Changelog for released changes.