@wpappointments/components
A library of React components used by WP Appointments and available for addon developers.
Installation
npm install @wpappointments/componentsComponent Categories
| Category | Components |
|---|---|
| Form | HtmlForm, FormProvider, Input, Select, Toggle, NumberField, DatePicker, WPDatePicker, Checkbox, Radio |
| Layout | CardBody, FormFieldSet, FormField, ErrorMessage, FieldMessages |
| Data Display | DataViews, BookableListPage, BookableSlideoutContent |
| Overlays | SlideOut, SlideoutRenderer, DeleteModal, Toaster |
| Actions | ActionButton, HeaderActions (SlotFill) |
| Bookable | BookableDefaultForm, BookableField, BookableListPage, BookableSlideoutContent |
Peer Dependencies
These components expect WordPress packages to be available as externals:
@wordpress/components@wordpress/i18n@wordpress/elementreact/react-dom
Guides
- Getting Started — setup and first component
- Form Fields — form components and validation
- Layout — layout and container components
- Data Views — data table with typed fields