https://github.com/yershalom/react-wordart
The nostalgic WordArt we know just in react
https://github.com/yershalom/react-wordart
css react wordart
Last synced: 3 months ago
JSON representation
The nostalgic WordArt we know just in react
- Host: GitHub
- URL: https://github.com/yershalom/react-wordart
- Owner: yershalom
- Created: 2019-01-31T09:34:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-04T05:11:04.000Z (over 2 years ago)
- Last Synced: 2025-03-30T03:04:40.713Z (4 months ago)
- Topics: css, react, wordart
- Language: JavaScript
- Homepage: https://yershalom.github.io/react-wordart
- Size: 7.4 MB
- Stars: 299
- Watchers: 1
- Forks: 7
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# react-wordart ([demo](https://yershalom.github.io/react-wordart/))
> The nostalgic WordArt we know just in react - [Hackernoon Post](https://hackernoon.com/when-dev-gets-nostalgic-17901c4f703f)
[](https://www.npmjs.com/package/react-wordart) [](https://standardjs.com) [](https://travis-ci.org/yershalom/react-wordart)
## css-wordart
Based on my [css-wordart](https://github.com/yershalom/css-wordart) repo
## Install
```bash
npm install --save react-wordart
```## Usage
```jsx
import React, { Component } from 'react'import WordArt from 'react-wordart'
class Example extends Component {
render () {
return (
)
}
}
```### Properties
Property | Type | Required | Default value | Description
:--- | :--- | :--- | :--- | :---
`text`|string|yes||
`theme`|string|no|`rainbow`| WordArt theme.
`fontSize`|number|no|`50`|### Available Themes
Theme | Output
:--- | :---
`rainbow` | 
`blues` | 
`superhero` | 
`radial` | 
`tilt` | 
`purple` | 
`horizon` | 
`italicOutline` | 
`slate` | -----
## Development
Local development is broken into two parts (ideally using two tabs).
First, run rollup to watch your `src/` module and automatically recompile it into `dist/` whenever you make changes.
```bash
npm start # runs rollup with watch flag
```The second part will be running the `example/` create-react-app that's linked to the local version of your module.
```bash
# (in another tab)
cd example
npm start # runs create-react-app dev server
```Now, anytime you make a change to your library in `src/` or to the example app's `example/src`, `create-react-app` will live-reload your local dev server so you can iterate on your component in real-time.
## License
MIT © [yershalom](https://github.com/yershalom)
This module was bootstrapped with [create-react-library](https://github.com/transitive-bullshit/create-react-library).