sycho/flarum-uikit

Frontend utilities for extension developers.

Maintainers

👁 SychO

Package info

github.com/SychO9/flarum-uikit

Language:TypeScript

pkg:composer/sycho/flarum-uikit

Fund package maintenance!

Other

Statistics

Installs: 21 485

Dependents: 8

Suggesters: 0

Stars: 2

Open Issues: 0

v0.3.2 2025-01-12 11:53 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 8865f72c0e94ae2f2b1887175a75517249b828d7

  • Sami Mazouz <sychocouldy.woop@gmail.com>

This package is auto-updated.

Last update: 2026-06-12 14:42:49 UTC


README

👁 latest version
👁 mit license
👁 downloads
👁 donate

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 SychO\UiKit\Extend\Register,
];

example.js

import ProgressBar from 'ext:sycho/flarum-uikit/common/ProgressBar';
import Label from 'ext:sycho/flarum-uikit/common/Label';
import LabelGroup from 'ext:sycho/flarum-uikit/common/LabelGroup';
import DiscussionSearch from 'ext:sycho/flarum-uikit/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 sycho/flarum-uikit:^0.3.0

Updating

$ composer update sycho/flarum-uikit:^0.3.0

Links

License

The MIT License.