1.0.1 • Published 1 year ago

hy-textgradient v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Text Gradient for React v.1.0.2

ReactJS modules are simple but have many advantages, one of which is that you can customize them freely.

Installation

npm install hy-textgradient

Example Project Implemented

// Add - Impport module //
import TextGradient from "hy-textgradient";
//----//

const App = () => {
  return (
    <div>
    
      // Add - Default components //
      <TextGradient colors={["#ff0000", "#ffff00", "#00ff00"]} >	
        Your Text To Gradient Here
	  </TextGradient>
      //----//
      
    </div>
  );
};

export default App;

Customization

AtributeKeyDescriptionStatus
colors="key?"{["#ff0000", "#ffff00", "#00ff00"]}Customize color, 2+ colors supportedrequired
direction="key?"horizontal vertical diagonal-left diagonal-right noneCustomize gradient directionoptional
decoration="key?"underline overline line-through noneCustomize text decorationoptional
style="key?"normal bold italicCustomize text styleoptional
size="key?"normal s m x xl xxl xxlCustomize text sizeoptional
font="key?"Name font family Support all web fontCustomize font styleoptional
className="key?"Support variable cssCustomize with cssoptional

Full Customization

<TextGradient className="" colors={["#ff0000", "#ffff00", "#00ff00"]} size="xxl" style="bold" decoration="underline" direction="diagonal-left" font="Arial">
  Your Text To Gradient Here
</TextGradient>

Happy Coding :)

1.0.1

1 year ago

1.0.0

1 year ago