0.1.4 • Published 3 years ago

react-ttp v0.1.4

Weekly downloads
13
License
MIT
Repository
github
Last release
3 years ago

React-TTP

NPM JavaScript Style Guide

Create engaging, readable, and customizable webpages from all sorts of text formats with React TextToParagraph. Whether you're pulling text from your app's backend, or you're just using Lorem text, TextToParagraph can help format text beautifully and responsively.

Install

npm install --save react-ttp

Roadmap to 1.0.0

  • StringToPara Component (Support for newline separated strings)
  • TxtToPara Component (Support for .txt files)
  • RtfToPara Component (Support for .rtf files)

Roadmap beyond 1.0.0

  • DocxToPara Component (Support for .docx files)
  • Web App to help format text to be used with react-ttp

Usage

import React, { Component } from 'react'

import { StringToPara } from 'react-ttp'

class Example extends Component {
  constructor(props) {
    super(props);
    this.state = { text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. \n\nAtque blanditiis dicta error explicabo facere facilis fugiat fugit ipsum magni nemo. \nAccusamus amet aspernatur assumenda atque commodi doloremque dolores ea earum eius est exercitationem explicabo fugiat hic, impedit ipsa laudantium maiores molestias, nostrum odio pariatur perspiciatis quam repudiandae sapiente voluptas voluptate?' }  
}

  render () {
    return (
      <StringToPara text={this.state.text}/>
    )
  }
}

License

MIT © moonstripe

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago