0.1.6 • Published 8 months ago

flex-render-react v0.1.6

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

@iamprompt/flex-render

Utility to render LINE Flex Bubble / Carousel JSON for displaying in website.

Installation

pnpm add flex-render-react

Usage

You can input Flex Bubble / Carousel JSON from Flex Message Simulator directly to FlexPreview component.

import 'flex-render-react/css';

import { FlexPreview } from "flex-render-react";

const flexJSON = {
  "type": "bubble",
  "body": {
    "type": "box",
    "layout": "vertical",
    "contents": [
      {
        "type": "text",
        "text": "Brown Cafe",
        "weight": "bold",
        "size": "xl"
      }
    ]
  }
}

<FlexPreview json={flexJSON} />

You can see the example in apps directory.

Bugs

If you find a bug, please file an issue on our issue tracker on GitHub.

0.1.6

8 months ago

0.1.5

8 months ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago