BOM Tree
Bill of Materials tree component with hierarchy, type badges, stock indicators, cost display, search, and drag-drop support. Designed for ERPlora manufacturing workflows.
BOM Tree with Items
Preview
ERPlora Hydraulic Valve Assembly
-
Hydraulic Valve Assembly FIN-HVA-001Finished1 unit$284.50 total
-
Valve Body Subassembly SUB-VB-042Sub-Assy1 unitIn Stock (24)$142.00 per unit
-
Steel Billet - Grade 316L RAW-STL-316LRaw2.5 kgLow (12 kg)$45.00 per unit
-
O-Ring Seal Kit CON-ORK-008Consumable4 pcsIn Stock (580)$3.20 per unit
-
-
Actuator Spring - Heavy Duty RAW-SPR-HD7Raw2 pcsOut of Stock$18.75 per unit
-
Anti-Static Blister Pack PKG-ASB-020Packaging1 pcsIn Stock (300)$1.80 per unit
-
Type Badges and Stock Indicators
Preview
Material Type Badges
Raw
Sub-Assy
Finished
Consumable
Packaging
Stock Indicators
In Stock (580)
Low Stock (12)
Out of Stock
Cost Display
$45.00
per unit
$284.50
total
Compact BOM Tree
Preview
ERPlora Cooling Fan Blade Set
-
Cooling Fan Assembly FIN-CFA-010Finished1 unit
-
Aluminum Alloy Sheet 2mm RAW-ALS-002Raw0.8 m2
-
Brushless DC Motor 12V RAW-BDM-12VRaw1 pcs
-
M3 Hex Bolts (pack of 10) CON-M3H-010Consumable1 pack
-
Empty State
Preview
New Product BOM
No components added
Start building your bill of materials by adding raw materials and sub-assemblies.
Classes Reference
| Class | Description |
|---|---|
.bom-tree | Root container with CSS variables |
.bom-tree-bordered | Adds outer border to container |
.bom-tree-sm | Small size variant (40px rows) |
.bom-tree-lg | Large size variant (56px rows) |
.bom-tree-compact | Compact variant (36px rows, smaller icons) |
.bom-tree-header | Header bar with title and actions |
.bom-tree-title | Header title text |
.bom-tree-actions | Action buttons container |
.bom-tree-action | Individual action button (36x36) |
.bom-tree-search | Search bar container |
.bom-tree-search-input | Search text input |
.bom-tree-list | Unstyled list for tree nodes |
.bom-tree-list-nested | Indented child list (uses --bom-indent) |
.bom-tree-node | Single tree node (li) |
.bom-tree-item | Item row with hover/active states |
.bom-tree-item-selected | Selected item highlight |
.bom-tree-item-highlight | Warning-colored highlight (search match) |
.bom-tree-item-dragging | Opacity reduction during drag |
.bom-tree-item-drag-over | Dashed outline for drop target |
.bom-tree-toggle | Expand/collapse arrow |
.bom-tree-toggle-expanded | Rotates arrow 90 degrees |
.bom-tree-toggle-empty | Invisible toggle for leaf nodes |
.bom-tree-level | Level depth indicator container |
.bom-tree-level-bar | Colored bar for depth level |
.bom-tree-level-bar-l1 to .bom-tree-level-bar-l5 | Level-specific colors (primary, success, warning, error, accent) |
.bom-tree-icon | Item icon container (32x32) |
.bom-tree-icon-raw | Amber icon for raw materials |
.bom-tree-icon-subassembly | Blue icon for sub-assemblies |
.bom-tree-icon-finished | Green icon for finished goods |
.bom-tree-icon-consumable | Purple icon for consumables |
.bom-tree-icon-packaging | Gray icon for packaging |
.bom-tree-details | Name and SKU text container |
.bom-tree-name | Item name (truncated) |
.bom-tree-sku | Monospace SKU code |
.bom-tree-type | Type badge base class |
.bom-tree-type-raw | Amber type badge |
.bom-tree-type-subassembly | Blue type badge |
.bom-tree-type-finished | Green type badge |
.bom-tree-type-consumable | Purple type badge |
.bom-tree-type-packaging | Gray type badge |
.bom-tree-quantity | Quantity display container |
.bom-tree-qty-value | Numeric quantity value |
.bom-tree-qty-unit | Unit label (kg, pcs, etc.) |
.bom-tree-stock | Stock indicator container |
.bom-tree-stock-in-stock | Green stock indicator |
.bom-tree-stock-low-stock | Warning stock with pulsing dot |
.bom-tree-stock-out-of-stock | Red out-of-stock indicator |
.bom-tree-cost | Cost display container |
.bom-tree-cost-value | Cost numeric value |
.bom-tree-cost-label | Cost description label |
.bom-tree-cost-total | Highlighted total cost with primary background |
.bom-tree-footer | Footer bar with summary |
.bom-tree-summary | Summary stats container |
.bom-tree-empty | Centered empty state container |
.bom-tree-empty-icon | Large icon in empty state |
.bom-tree-empty-title | Empty state heading |