Skip to content
Seb-GRAFPublic

About

React components with shared styling and motion, TypeScript types, and ready-to-import CSS.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Tensile

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.

Website · Documentation

Install

npm install tensile

Tensile 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.

Example

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.

Documentation

License

MIT © 2026 Sébastien Graf. The bundled Geist fonts keep their SIL Open Font License; see THIRD_PARTY_NOTICES.

Development

Use Node 24 and npm.

npm ci
npm run storybook
  • npm run site starts the documentation site.
  • npm run build builds the package into dist/.
  • npm run check runs 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.

Repository layout

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.

About

React components with shared styling and motion, TypeScript types, and ready-to-import CSS.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages