Download the PHP package ui-awesome/html-core-component without Composer
On this page you can find all versions of the php package ui-awesome/html-core-component. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ui-awesome/html-core-component
More information about ui-awesome/html-core-component
Files in ui-awesome/html-core-component
Package html-core-component
Short Description Fluent, immutable component primitives for PHP: alerts, breadcrumbs, dropdowns, navbars, toggles, and menu items.
License BSD-3-Clause
Informations about the package html-core-component
Html Core Component
Composable, immutable PHP primitives for building UI components: alerts, breadcrumbs, dropdowns, navbars, toggles, and menu items.
Accessible by default, fluent API, framework-friendly data hooks, and rendering powered by html-core.
Features
Installation
Quick start
This package ships both abstract base classes (for subclassing) and ready-to-use concrete classes (Alert, Breadcrumb, Dropdown, NavBar, Toggle, Item, Menu). The concrete classes can be used directly via ::tag() without any subclassing.
The exposed abstractions are:
BaseAlert/Alertdismissible alerts with prefix/suffix containers and an optional toggle.BaseBreadcrumb/Breadcrumbaccessible breadcrumb navigation with active-path detection.BaseDropdown/Dropdowndropdown menus with toggles, dividers, and active-link wiring.BaseNavBar/NavBarnavigation bars with brand, menu, and collapsible toggle.BaseToggle/Togglebutton or link toggles with full data-attribute coverage (Bootstrap, Flowbite, Tailwind UI).
Custom breadcrumb
Custom dropdown
Custom navbar with toggle
Menu with wrapped labels
Each item label can be wrapped in its own element (for styling or truncation) via labelTag/labelClass. Without labelTag, the label renders as plain text.
Application-scoped styling
Framework styling is supplied by a ThemeInterface implementation resolved through Config and applied with BaseTag::config(). The theme reads the ComponentContext to pick the recipe, so variants (danger, info, warning, ...) travel with the context instead of being hard-coded on the component.
config() applies recipes immediately. Call it before fluent setters that must remain local overrides.
For per-instance defaults that do not belong to a theme, pass them to the factory:
[!NOTE] The
Bootstrap5andFlowbitecookbooks were removed in0.3.0. Flowbite is discontinued, and the Bootstrap 5 presets are being republished as standalone theme packages. See the Upgrade Guide for the migration.
Documentation
For detailed testing, migration, and quality workflows.
- Testing Guide
- Upgrade Guide
Package information
Project status
Our social networks
License
All versions of html-core-component with dependencies
ui-awesome/html-attribute Version ^0.8
ui-awesome/html-contracts Version ^0.2
ui-awesome/html-core Version ^0.8
ui-awesome/html-helper Version ^0.7
ui-awesome/html-interop Version ^0.4
ui-awesome/html-mixin Version ^0.8
ui-awesome/html-svg Version ^0.6