Skip to content

syigen/smartscribe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published