@dancingparakeet/word-weaver
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Word Weaver

npm version License: MIT React

A minimal React component to generate cool names for demo projects, throwaway accounts, containers, and anything really!

Installation

npm install @dancingparakeet/word-weaver
# or
yarn add @dancingparakeet/word-weaver

Usage Example

import React from 'react';
import WordWeaver from '@dancingparakeey/word-weaver';

const CustomWordGenerator = () => {
    const customGenerate = () => {
        // Custom word generation logic
        console.log('Custom generate logic called');
    };

    const handleCustomWordGenerated = (word) => {
        console.log('Custom generated word:', word);
    };

    return (
        <div>
            <h2>Custom Word Generator</h2>
            <WordWeaver generate={customGenerate} onWordGenerated={handleCustomWordGenerated} />
        </div>
    );
};

export default CustomWordGenerator;

Props

Prop Type Description
generate () => void Optional custom function to generate a word
onWordGenerated () => void Callback function called with the generated word

Author

Made with 💖 by dancingparakeet

GitHub: @dancingparakeet

License

This project is licensed under the MIT License Feel free to use this code wherever you'd like

Readme

Keywords

none

Package Sidebar

Install

npm i @dancingparakeet/word-weaver

Weekly Downloads

0

Version

1.0.1

License

none

Unpacked Size

9.26 kB

Total Files

8

Last publish

Collaborators

  • dancingparakeet