fof / ui-kit
Frontend utilities for extension developers.
Fund package maintenance!
v2.0.0-beta.3
2026-03-19 15:00 UTC
Requires
- php: ^8.2
- flarum/core: ^2.0.0
This package is auto-updated.
Last update: 2026-03-21 00:45:18 UTC
README
Flarum UiKit with reusable frontend utilities for extension developers. (Not An Extension)
Usage
Use the package's extender to register its resources.
extend.php
return [ new FoF\UiKit\Extend\Register, ];
example.js
import ProgressBar from 'ext:fof/ui-kit/common/ProgressBar'; import Label from 'ext:fof/ui-kit/common/Label'; import LabelGroup from 'ext:fof/ui-kit/common/LabelGroup'; import DiscussionSearch from 'ext:fof/ui-kit/forum/DiscussionSearch'; /** * @param mini bool small sized * @param alternate bool works with backgrounds using control-bg background color * @param progress number percentage * @param className string */ <ProgressBar fancy={true} mini={false} alternate={false} progress={93} /> /** * @param color string */ <Label color="red">Text</Label> /** * Container for a group of labels */ <LabelGroup></LabelGroup> /** * @param state GlobalSearchState * @param ignore number * @param onSelect (discussion: Discussion) => void */ <DiscussionSearch state={} ignore={485} onSelect={(discussion) => ...} />
Installation
composer require fof/ui-kit
Updating
composer update fof/ui-kit
Links
License
The MIT License.