mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-30 01:46:24 +01:00
64bb8b2989
Move webpack configuration to a subfolder in the client directory Remove trailing whitespace Rename prd.config.js to prod.config.js Simplify lint:js target path |
||
---|---|---|
.. | ||
scss | ||
src | ||
template | ||
tests/components | ||
webpack | ||
.npmignore | ||
package.json | ||
README.md |
Wagtail client-side components
This library aims to give developers the ability to subclass and configure Wagtail's UI components.
Usage
npm install wagtail
import { Explorer } from 'wagtail';
...
<Explorer onChoosePage={(page)=> { console.log(`You picked ${page}`); }} />
Available components
TODO
- Explorer
- Modal
- DatePicker
- LinkChooser
- DropDown
Building in development
Run webpack
from the Wagtail project root.
webpack
How to release
The front-end is bundled at the same time as the Wagtail project, via setuptools
.