Base · SAHI Design System

Components · Calculators

BrokerageCalculator

Orchestrates SegmentTabSelector, CalculatorInputForm, ResultsSummary & ContractNoteDetail.

NSE
Turnover₹1,00,325
Brokerage₹10.00
STT₹51.00
Exchange charges₹3.01
SEBI charges₹0.10
Stamp duty₹2.95
GST₹2.34
Total charges₹69.40
Breakeven₹1.39
Net P&L+ ₹2,015.60

Brokerage: ₹10 or 0.05% per order, whichever is lower.

Props

PropTypeDefaultDescription
segmentintraday | delivery | mtfintradayActive tab.
exchangense | bsenseExchange for charges.
defaultValues{ buy, sell, qty }Prefilled inputs.

Reference API for the design concept — align names and types with your implementation.

Guidelines

  • Use in the active theme; the component adapts to light and dark automatically.
  • Keep the purple accent for interactive states only — never as a fill or background.
  • Copy the markup from the Code tab and wire it to base.css tokens.