01orbital
/
hooks
Files
Code
Info
Use Cart
use-cart
Shopping cart React hook for ecommerce: a client hook for cart state with lines, quantity clamping, remove, clear and reset, plus totals with pluggable shipping and tax estimates. Exports helpers for minor-unit money formatting.
Use Copy To Clipboard
use-copy-to-clipboard
Copy to clipboard React hook: a client hook that writes text to the clipboard and reports copied for a set timeout, or failed until the next try. A late earlier write never overrides a newer one.
Use Product Filters
use-product-filters
Product filter React hook for faceted product lists: OR within a facet, AND across facets, price bands on number fields, sort options, results and a count of what each option would leave.
Select a component to view its code
Click on any item in the sidebar to get started
Select a component to view its information
Use Cart
use-cart
Shopping cart React hook for ecommerce: a client hook for cart state with lines, quantity clamping, remove, clear and reset, plus totals with pluggable shipping and tax estimates. Exports helpers for minor-unit money formatting.
Use Copy To Clipboard
use-copy-to-clipboard
Copy to clipboard React hook: a client hook that writes text to the clipboard and reports copied for a set timeout, or failed until the next try. A late earlier write never overrides a newer one.
Use Product Filters
use-product-filters
Product filter React hook for faceted product lists: OR within a facet, AND across facets, price bands on number fields, sort options, results and a count of what each option would leave.
Select a component to view its code
Click on any item in the sidebar to get started
Select a component to view its information