Discount Ninja
Search
K

Component

Attributes

attached (boolean)
  • true [default]: the borders are attached to the edges of the viewport
  • false: the borders are separated from the edges of the viewport with padding
border ("rectangular" | "rounded")
  • rectangular: borders have straight corners
  • rounded: borders have rounded corners
mode ("cart" | "gift-picker")
  • cart [default]: in this mode the component renders a drawer cart
  • gift-picker: in this mode the component allows the user to pick from a selection of gifts
state ("loading" | "ready")
  • ready [default]: in this state all components in the cart can be interacted with
  • loading: in this state the items and subtotal show a loading state and the checkout buttons are disabled
Last modified 5mo ago