Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.12 KB

File metadata and controls

55 lines (39 loc) · 1.12 KB

SmartScribe

SmartScribe is a React-based WYSIWYG text editor component that provides context-based suggestions as you type.

Installation

You can install the SmartScribe library using npm:

npm install smart-scribe

Features

  • Customizable placeholder text
  • Context-based suggestions
  • Easy to use React component

Usage

Here's a simple example of how to use the SmartScribe component in your application:

import React from 'react';
import SmartScribe from 'smart-scribe';

const App: React.FC = () => {
    const handleType = (text: string) => {
        console.log('Updated content:', text);
    };

    const getSuggestion = (text: string) => {
        // Return a context-based suggestion based on the text
        return "suggestion";
    };

    return (
        <div className="App">
            <SmartScribe
                placeholder="Type here..."
                onType={handleType}
                getSuggestion={getSuggestion}
            />
        </div>
    );
};

export default App;

License

This project is licensed under the MIT License. See the LICENSE file for details.