2.0.1 • Published 2 years ago

@poool/oak-react v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

GitHub npm CI codecov

Installation

yarn add @poool/oak @poool/oak-react

Usage

import { useState } from 'react';
import { Builder } from '@poool/oak-react';

export default () => {
  const [value, setValue] = useState([]);

  const onChange = field => {
    setValue(field.value);
  };

  return (
    <Builder
      onChange={onChange}
      value={value}
    />
  );
};

Documentation

<Builder />

Props

  • value {Array} the content you want your Builder to begin with. If you want to start with a empty Builder, pass an empty array.
  • options{Object} (optional) the options you want to pass to the Builder. See options for more information.
  • onChange {Function} (optional) the event listener which will be called when the Builder changes. See onChange event for more information.
  • onImageUpload {Function} (optional) the event listener which will be called when an image is uploaded using the image field type. See onImageUpload event
  • containerProps {Object} (optional) the props you want to pass to the Builder's inner container.

Contributing

npm.io

Please check the CONTRIBUTING.md doc for contribution guidelines.

License

This software is licensed under MIT.

2.0.1

2 years ago

2.0.0-alpha.11

2 years ago

2.0.0-alpha.7

2 years ago

2.0.0-alpha.8

2 years ago

2.0.0-alpha.5

2 years ago

2.0.0-alpha.6

2 years ago

2.0.0-alpha.3

3 years ago

2.0.0-alpha.4

2 years ago

2.0.0-alpha.0

3 years ago

2.0.0-alpha.1

3 years ago

2.0.0-alpha.2

3 years ago

1.4.0-alpha.0

3 years ago

1.4.0-alpha.1

3 years ago

1.4.0

3 years ago

1.3.1

3 years ago

1.2.0

3 years ago

1.2.3

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

2.0.0

3 years ago

1.0.2

3 years ago

1.1.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.0-rc.20

3 years ago

1.0.0-rc.22

3 years ago

1.0.0-rc.16

3 years ago

1.0.0-rc.19

3 years ago

1.0.0-rc.12

4 years ago

1.0.0-rc.14

3 years ago

1.0.0-rc.11

4 years ago

1.0.0-rc.10

4 years ago

1.0.0-rc.8

4 years ago

1.0.0-rc.6

4 years ago

1.0.0-rc.3

4 years ago

1.0.0-rc.0

4 years ago

1.0.0-beta.14

4 years ago

1.0.0-beta.13

4 years ago

1.0.0-beta.12

4 years ago

1.0.0-beta.11

4 years ago

1.0.0-beta.10

4 years ago

1.0.0-beta.5

4 years ago

1.0.0-beta.7

4 years ago

1.0.0-beta.2

4 years ago

1.0.0-beta.3

4 years ago

1.0.0-beta.0

4 years ago

1.0.0-beta.1

4 years ago

1.0.0-alpha.14

4 years ago

1.0.0-alpha.12

4 years ago

1.0.0-alpha.11

4 years ago

1.0.0-alpha.9

4 years ago

1.0.0-alpha.6

4 years ago

1.0.0-alpha.8

4 years ago

1.0.0-alpha.5

4 years ago

1.0.0-alpha.2

4 years ago

1.0.0-alpha.1

4 years ago