TipSelector
Allows customers to select a tip amount from preset percentages or enter a custom amount. Displays the calculated tip based on the order subtotal.Preview
View in StorybookImport
Usage
Props
Order subtotal used to calculate percentage-based tips.
The currently selected tip amount in cents.
Callback fired when the tip selection changes.
Array of percentage presets to display as quick-select buttons.
Behavior
- Preset percentage buttons with calculated dollar amounts
- “Custom” option reveals a numeric input
- “No tip” option to explicitly set tip to $0
- Active preset is highlighted with primary accent