All Projects → nitin42 → Redocx

nitin42 / Redocx

📄 Create word documents with React

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Redocx

Svelte Component Template
A base for building shareable Svelte 3 components
Stars: ✭ 208 (-84.37%)
Mutual labels:  library, components
Bem Components
Set of components for sites development
Stars: ✭ 318 (-76.11%)
Mutual labels:  library, components
Commonmark Java
Java library for parsing and rendering CommonMark (Markdown)
Stars: ✭ 1,675 (+25.85%)
Mutual labels:  renderer, library
React Messenger
Chat UX components built with React, inspired by Facebook Messenger
Stars: ✭ 167 (-87.45%)
Mutual labels:  library, components
Webrix
Powerful building blocks for React-based web applications
Stars: ✭ 41 (-96.92%)
Mutual labels:  library, components
Ng Aquila
Angular UI Component library for the Open Insurance Platform
Stars: ✭ 170 (-87.23%)
Mutual labels:  library, components
Framework7
Full featured HTML framework for building iOS & Android apps
Stars: ✭ 16,560 (+1144.18%)
Mutual labels:  library, components
Atlas.js
A component-based Node.js library to reduce boilerplate and provide sane project structure 🍻
Stars: ✭ 108 (-91.89%)
Mutual labels:  library, components
Contactlab Ui Components
DEPRECATED - Basic UI components for ContactLab UX design pattern library
Stars: ✭ 31 (-97.67%)
Mutual labels:  library, components
Awesome Ui Component Library
Curated list of framework component libraries for UI styles/toolkit
Stars: ✭ 702 (-47.26%)
Mutual labels:  library, components
Blazorise
Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Bulma, AntDesign, and Material.
Stars: ✭ 2,103 (+58%)
Mutual labels:  library, components
Kit
Tools for developing, documenting, and testing React component libraries
Stars: ✭ 1,201 (-9.77%)
Mutual labels:  library, components
Chat Ui Kit React
Build your own chat UI with React components in few minutes. Chat UI Kit from chatscope is an open source UI toolkit for developing web chat applications.
Stars: ✭ 131 (-90.16%)
Mutual labels:  library, components
Terraform Aws Components
Opinionated, self-contained Terraform root modules that each solve one, specific problem
Stars: ✭ 168 (-87.38%)
Mutual labels:  library, components
React Rainbow
🌈 React Rainbow Components. Build your web application in a snap.
Stars: ✭ 1,662 (+24.87%)
Mutual labels:  library, components
Ui Neumorphism
📕 React component library designed on the "new skeuomorphism" or "neumorphism" UI/UX trend.
Stars: ✭ 258 (-80.62%)
Mutual labels:  library, components
Beam
✨ Expressive WebGL
Stars: ✭ 383 (-71.22%)
Mutual labels:  renderer, library
Egeo
EGEO is the open-source UI library used to build Stratio's UI. It includes UI Components, Utilities, Services and much more to build user interfaces quickly and with ease. The library is distributed in AoT mode.
Stars: ✭ 69 (-94.82%)
Mutual labels:  library, components
Neumorphic Ui
📚 A library of components based on the concept of neumorphism
Stars: ✭ 82 (-93.84%)
Mutual labels:  library, components
Amazon Alexa Php
Php library for amazon echo (alexa) skill development.
Stars: ✭ 93 (-93.01%)
Mutual labels:  library

redocx

Build Status yarn license status

Create word documents with React

Introduction

redocx is a library which lets you create word documents with React. It provides a set of components which renders your declarative views and components to word documents.

Example

A simple component that renders a "Hello World" text to a word document.

import React from 'react'
import { render, Document, Text } from 'redocx'

class App extends React.Component {
  render() {
    return (
      <Document>
        <Text>Hello World</Text>
      </Document>
    )
  }
}

render(<App />, `${__dirname}/example.docx`)

Let's get started!

Install

Babel presets and cli

npm install --save-dev babel-cli babel-core babel-preset-env babel-preset-react babel-preset-stage-0

react and redocx

npm install --save react redocx

Usage

  • Create a .babelrc
{
  "presets": [
    "env",
    "stage-0",
    "react"
  ]
}
  • After configuring babel and assuming you've already created a file example.js with this example, run babel-node example.js. This will render your React component to word document.

Demo

git clone https://github.com/nitin42/redocx.git
cd redocx
npm install
npm run example

Documentation

See the detailed documentation here

Contributing

Contributing guide

License

MIT

Sponsor

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].