Repository navigation
UiLogBarRenderer
Pair\Html\UiLogBarRenderer is an optional renderer contract for LogBar-specific UI chrome.
It lets UI renderer implementations control the outer LogBar classes and whether the LogBar can show named framework breakpoints.
Implement UiLogBarRenderer when a custom UiRenderer needs framework-specific LogBar wrappers.
If a renderer does not implement it, UiTheme falls back to the native LogBar chrome.
Returns the classes used by the LogBar shell.
The array contains:
rootheaderbody
Example:
use Pair\Html\UiLogBarRenderer;
use Pair\Html\UiRenderers\NativeUiRenderer;
final class TailwindRenderer extends NativeUiRenderer implements UiLogBarRenderer {
/**
* Return the renderer name used by UiTheme.
*/
public function name(): string
{
return 'tailwind';
}
/**
* Return Tailwind-compatible LogBar classes.
*/
public function logBarChromeClasses(): array
{
return [
'root' => 'logbar rounded border',
'header' => 'logbar-header border-b',
'body' => 'p-4',
];
}
/**
* Return whether this renderer exposes named breakpoints.
*/
public function supportsLogBarBreakpoints(): bool
{
return false;
}
}Returns whether the renderer has named framework breakpoints that the LogBar can display.
The built-in Bootstrap and Bulma renderers return true. Native HTML returns false.
LogBar asks UiTheme for LogBar chrome. UiTheme checks the active renderer and uses UiLogBarRenderer when available.
This keeps LogBar markup out of the generic renderer contract while still allowing framework-specific output.
See also: UiRenderer, UiTheme, LogBar, Application.
Maintained by Viames Marino — VM Ingegneria · Professional enquiries
Home · Setup · Configuration
Build with Pair 4
- Generator
- Controllers and responses
- Read models
- ActiveRecord and queries
- Forms and validation
- PairUI.js, PairMotion.js and HTML fragments
APIs and authentication
- API guide and CRUD
- Middleware and rate limits
- Users, sessions, and ACL
- Passkeys and social login
- Native mobile setup
Integrate and operate
- Integrations
- Runtime extensions and adapter keys
- Cache and cache stores
- Logs and observability
- PWA and push
- Packages and distribution
- Upgrade to v4