Next Commerce
Bundle SelectorReference

CSS Classes & State Attributes

CSS Classes

These classes are applied by the enhancer. Override the class names via CSS class override attributes if needed.

ClassApplied toWhen
next-bundle-cardEach registered cardAlways (on registration)
next-selectedThe currently selected cardAfter selection
next-in-cartA cardAll its items are present in the cart at the required quantities
next-loadingA cardWhile a price fetch is in flight

Attributes Set by the Enhancer

On the container element:

data-selected-bundle="<id>" — reflects the currently selected bundle ID.

On each bundle card element:

AttributeValuesWhen set
data-next-selected"true" / "false"Updated on every selection change
data-next-in-cart"true" / "false"Mirrors the next-in-cart class
data-next-loading"true" / "false"Set during a price fetch

On this page