@inspirer-dev/hero-size-checkbox
Version:
A custom field plugin for Strapi v5 that provides a checkbox selector for hero widget sizes (XL, L, M, S).
54 lines (34 loc) • 963 B
Markdown
# Hero Size Checkbox
A custom field plugin for Strapi v5 that provides a checkbox selector for hero widget sizes (XL, L, M, S).
## Features
- Checkbox selection for hero widget sizes: XL, L, M, S
- Returns data as an array of selected sizes
- Supports multiple selections
- Internationalization support (English and Russian)
## Installation
This plugin is part of the Strapi project and is installed automatically.
## Usage
1. Add the custom field to your content type
2. Select the "Hero Size Checkbox" field type
3. Users can select multiple sizes from XL, L, M, S options
4. The field returns an array of selected sizes
## Data Structure
The plugin returns data in the following format:
```json
{
"sizes": ["XL", "L", "M"]
}
```
## Configuration
No additional configuration is required. The plugin works out of the box.
## Development
To build the plugin:
```bash
yarn build
```
To watch for changes:
```bash
yarn watch
```
## License
MIT