Plugins
Plugin Settings Panel
Each Blinko plugin can have its own settings panel that allows users to customize the plugins behavior.
Plugin Settings Panel
Enable Settings Panel
Set withSettingPanel = true
in your plugin class to enable the settings panel:
Create Settings Component
Create a standalone Preact component to manage the settings interface:
Configuration API
Blinko provides a configuration API to save and retrieve plugin settings:
Using Configuration in Your Plugin
You can access and use these settings in other parts of your plugin:
Best Practices
- Type Safety
- Use TypeScript types for your configuration
- Define interfaces for your plugin’s settings
- Internationalization
- Use Blinko’s i18n system for all text
- Provide translations for all settings labels
- Error Handling
- Handle API errors gracefully
- Provide user feedback for actions
- UI/UX Best Practices
- Use consistent styling with Blinko’s theme
- Provide immediate feedback for user actions
- Use appropriate input types and validation
Create Settings Component
Create a standalone Preact component to manage the settings interface:
Configuration API
Blinko provides a configuration API to save and retrieve plugin settings:
Using Configuration in Your Plugin
You can access and use these settings in other parts of your plugin:
Best Practices
- Type Safety
- Use TypeScript types for your configuration
- Define interfaces for your plugin’s settings
- Internationalization
- Use Blinko’s i18n system for all text
- Provide translations for all settings labels
- Error Handling
- Handle API errors gracefully
- Provide user feedback for actions
- UI/UX Best Practices
- Use consistent styling with Blinko’s theme
- Provide immediate feedback for user actions
- Use appropriate input types and validation