Component Customization
Fanfare widgets support customization through slots and render props, allowing you to replace specific parts while keeping the widget functionality.Customization Approaches
| Approach | Customization Level | Complexity |
|---|---|---|
| CSS Variables | Styling only | Low |
| Slots | Partial replacement | Medium |
| Render Props | Full control | High |
| Hooks | Complete freedom | Highest |
Slots (SolidJS/Web Components)
Widgets built with SolidJS support slot-based customization:Available Slots by Widget
QueueWidget Slots
| Slot | Props |
|---|---|
header | status, position, estimatedWaitMinutes, title, description |
position | status, position, estimatedWaitMinutes |
actions | status, onEnter, onLeave, isEntering, isLeaving |
DrawWidget Slots
| Slot | Props |
|---|---|
header | status, drawTime, timeRemaining, title, description |
countdown | status, drawTime, timeRemaining |
actions | status, onEnter, onWithdraw, onProceed, isEntering |
AuctionWidget Slots
| Slot | Props |
|---|---|
header | status, currentBid, myBid, isWinning, title, description |
bidDisplay | status, currentBid, myBid, minNextBid, reservePrice, reserveMet |
bidForm | status, minNextBid, bidIncrement, onBid, isBidding |
bidHistory | status, bidHistory |
countdown | status, endTime, timeRemaining |
ExperienceWidget Slots
| Slot | Props |
|---|---|
start | snapshot, status, onStart, isStarting |
loading | snapshot, status, message |
auth | snapshot, status, onSubmit, onVerify, onSkip |
accessCode | snapshot, status, onSubmit, onSkip |
upcoming | snapshot, status, startsAt, canEnterWaitlist, onEnterWaitlist |
waitlist | snapshot, status, position, startsAt, onLeaveWaitlist |
enterable | snapshot, status, participationType, onEnter |
participating | snapshot, status, participationType, position, onLeave |
admitted | snapshot, status, admittanceToken, expiresAt |
expired | snapshot, status, onReenter, isReentering |
ended | snapshot, status, endedAt |
error | snapshot, status, error, onRetry |