@undermuz/react-page-builder
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@undermuz/react-page-builder

(⚠️⚠️⚠️ THIS PACKAGE IS UNDER DEVELOPING ⚠️⚠️⚠️)

React library to make Ui-Blocks with JSON, and fill it by generated edit-form

NPM: react-page-builder

Install

npm i -S @undermuz/react-page-builder

Update

npm update @undermuz/react-page-builder

Basic usage

    // Blocks with editor
    import BlocksEditor from "@undermuz/react-page-builder/blocks-editor/"

    // Editor theme
    import ChakraUi from "@undermuz/react-json-form/themes/chakra"

    // Blocks library
    import Offer1 from "@undermuz/grommet-block-templates/offer/1"
    import Feature1 from "@undermuz/grommet-block-templates/features/1"
    import Price1 from "@undermuz/grommet-block-templates/prices/1"
    import Price2 from "@undermuz/grommet-block-templates/prices/2"
    import GridText1 from "@undermuz/grommet-block-templates/grid-text/1"

    const library: IBlock[] = [Offer1, Feature1, Price1, Price2, GridText1]

    // Page
    const Page (props) => {
        const [value, setValue] = useState<IBlockResultValue[]>([])

        return
            <BlocksEditor
                editFormTheme={RsuiteUi}
                library={library}
                value={value}
                onChange={(v) => setValue(v)}
            />
    }

Examples

Storybook

Package Sidebar

Install

npm i @undermuz/react-page-builder

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

32.5 kB

Total Files

18

Last publish

Collaborators

  • undermuz