editable-creative-canvas-2
v0.1.6
Published
A React plugin with TypeScript and Tailwind CSS
Readme
Editable Creative Canvas
A modern, customizable React plugin with TypeScript and Tailwind CSS support. This plugin provides a flexible and beautiful UI component that can be easily integrated into any React application.
Features
- 🎨 Built with TypeScript for type safety
- 🎯 Tailwind CSS for styling
- 🚀 Modern React with functional components
- 📦 Tree-shakeable and optimized bundle
- 🎭 Customizable through props
- 🎨 Beautiful default styling
Installation
npm install editable-creative-canvas-2
# or
yarn add editable-creative-canvas-2Usage
import React from 'react';
import MyPlugin from 'editable-creative-canvas-2';
function App() {
const handleClick = () => {
console.log('Button clicked!');
};
return (
<MyPlugin
title="Welcome to My Plugin"
description="This is a beautiful component built with React and Tailwind CSS."
onClick={handleClick}
/>
);
}Props
| Prop | Type | Required | Description |
|------|------|----------|-------------|
| title | string | Yes | The title text to display |
| description | string | Yes | The description text to display |
| onClick | () => void | Yes | Callback function when the button is clicked |
Styling
The component comes with a beautiful default styling using Tailwind CSS. You can customize the appearance by:
- Overriding the default classes using the
classNameprop - Modifying the Tailwind configuration in your project
- Using CSS-in-JS solutions
Development
# Install dependencies
npm install
# Start development server
npm start
# Build the package
npm run build
# Run tests
npm testContributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT © [Your Name]
Support
If you encounter any issues or have questions, please open an issue on the GitHub repository.
