A React component for inline editing
npm install @progressive-villager/react-inline-editableA zero-dependency and unstyled React component library for inline editing with flexible composition patterns and sensible defaults.
- 🎯 Zero Dependencies - Pure React implementation
- ➰ Flexible Composition - Uses compound components pattern
- 🔄 Controlled & Uncontrolled - Support for both patterns
- 📝 TypeScript - Full type safety with polymorphic props
- 🎛️ Customizable - Configurable activation and deactivation modes
``bash`
npm install @progressive-villager/react-inline-editableor
pnpm add @progressive-villager/react-inline-editableor
yarn add @progressive-villager/react-inline-editable
`tsx
import { InlineEditable } from "@progressive-villager/react-inline-editable";
function App() {
const [value, setValue] = useState("Click to edit");
return (
onChange={(e) => setValue(e.target.value)}
/>
);
}
``
For complete documentation, examples, and API reference, visit the documentation site.
MIT