@wordpress/preferences
Version:
Utilities for managing WordPress preferences.
14 lines (9 loc) • 458 B
Markdown
# PreferencesModalTabs
`PreferencesModalTabs` creates a tabbed interface meant to be used inside a `PreferencesModal`. Markup differs between small and large viewports; on small the tabs are closed by default.
## Example
See the `PreferencesModal` readme for usage info.
## Props
### sections
Sections to populate the modal with. Takes an array of objects, where each should include `name`, `tablabel` and `content`.
- Type: `Array`
- Required: Yes.