Skip to main content

Totals

The hv-ui totals package provides components to display pricing, with the option to use an accordion. There are eight components available:

  • Total: flex wrapper for the display of the TotalLabel and TotalValue
  • TotalLabel: the description of the total being displayed
  • TotalValue: the value being displayed
  • TotalAccordionTrigger: optional accordion trigger for displaying totals content in an accordion
  • TotalAccordion: optional accordion for totals content
  • TotalValueAccordion: wrapper to position content
  • TotalAccordionContent: optional accordion content
  • TotalsContainer: wrapper for totals components

Example

Subtotal
$999.00
Discount
-$10.00
Total
$989.00

Total

PropertyDescriptionType
classNameAdditional classes for styling the element.String
propsAdditional div properties from HTML attributes.HTMLDivElement

Total Label

PropertyDescriptionType
classNameAdditional classes for styling the element.String
propsAdditional div properties from HTML attributes.HTMLDivElement

Total Value

PropertyDescriptionType
classNameAdditional classes for styling the element.String
propsAdditional div properties from HTML attributes.HTMLDivElement

Total Accordion Trigger

PropertyDescriptionType
classNameAdditional classes for styling the element.String
propsAdditional div properties from HTML attributes.HTMLDivElement

Total Accordion

PropertyDescriptionType
classNameAdditional classes for styling the element.String
valueThe controlled stateful value of the accordion item whose content is expandedString
propsAdditional div properties from HTML attributes.HTMLDivElement

Total Value Accordion

PropertyDescriptionType
classNameAdditional classes for styling the element.String
propsAdditional div properties from HTML attributes.HTMLDivElement

Total Accordion Content

PropertyDescriptionType
classNameAdditional classes for styling the element.String
propsAdditional div properties from HTML attributes.HTMLDivElement

Totals Container

PropertyDescriptionType
classNameAdditional classes for styling the element.String
propsAdditional div properties from HTML attributes.HTMLDivElement