M
mebius
/
hooks
Files
Code
Info
useChartMotion
charts-use-chart-motion
anime.js helpers for the charts: a scope bound to the chart's root (reverted on unmount), the reduced-motion preference, an entrance that plays once the chart scrolls into view, useInView (whether the chart is on screen, to pause ambient loops), useCountUp (numbers that count to new values) and releaseStyles (hands an element back to its classes).
useChartSize
charts-use-chart-size
An element's content-box size from a ResizeObserver (callback ref + size, starting at the design size), so line charts draw their paths at the width they get.
useControllableState
charts-use-controllable-state
State a parent can control (value + onChange) or leave to the component (defaultValue); used by the segmented control, the tabs and the chart cards.
useControllableState
forms-pro-use-controllable-state
State a parent can control (value + onChange) or leave to the component (defaultValue); used by the form blocks' segmented controls, steppers and pickers.
useFormMotion
forms-pro-use-form-motion
anime.js helpers for the form blocks: the reduced-motion preference, an entrance that plays once the form scrolls into view (its first frame applied before paint), useAnimeScope (animations reverted on unmount), useInView (to pause ambient loops off screen), useCountUp (numbers that count to new values), shake (an invalid submit) and releaseStyles (hands an element back to its classes).
useFormSubmit
forms-pro-use-form-submit
The submit status every form block shows (idle, submitting, success): runs your onSubmit, waits for it when it returns a promise, and goes back to idle when it throws.
useControllableState
forms-use-controllable-state
State a parent can control (value + onChange) or leave to the component (defaultValue); used by the form blocks' segmented controls, steppers and pickers.
useFormMotion
forms-use-form-motion
anime.js helpers for the form blocks: the reduced-motion preference, an entrance that plays once the form scrolls into view (its first frame applied before paint), useAnimeScope (animations reverted on unmount), useInView (to pause ambient loops off screen), useCountUp (numbers that count to new values), shake (an invalid submit) and releaseStyles (hands an element back to its classes).
useFormSubmit
forms-use-form-submit
The submit status every form block shows (idle, submitting, success): runs your onSubmit, waits for it when it returns a promise, and goes back to idle when it throws.
Select a component to view its code
Click on any item in the sidebar to get started
Select a component to view its information
useChartMotion
charts-use-chart-motion
anime.js helpers for the charts: a scope bound to the chart's root (reverted on unmount), the reduced-motion preference, an entrance that plays once the chart scrolls into view, useInView (whether the chart is on screen, to pause ambient loops), useCountUp (numbers that count to new values) and releaseStyles (hands an element back to its classes).
useChartSize
charts-use-chart-size
An element's content-box size from a ResizeObserver (callback ref + size, starting at the design size), so line charts draw their paths at the width they get.
useControllableState
charts-use-controllable-state
State a parent can control (value + onChange) or leave to the component (defaultValue); used by the segmented control, the tabs and the chart cards.
useControllableState
forms-pro-use-controllable-state
State a parent can control (value + onChange) or leave to the component (defaultValue); used by the form blocks' segmented controls, steppers and pickers.
useFormMotion
forms-pro-use-form-motion
anime.js helpers for the form blocks: the reduced-motion preference, an entrance that plays once the form scrolls into view (its first frame applied before paint), useAnimeScope (animations reverted on unmount), useInView (to pause ambient loops off screen), useCountUp (numbers that count to new values), shake (an invalid submit) and releaseStyles (hands an element back to its classes).
useFormSubmit
forms-pro-use-form-submit
The submit status every form block shows (idle, submitting, success): runs your onSubmit, waits for it when it returns a promise, and goes back to idle when it throws.
useControllableState
forms-use-controllable-state
State a parent can control (value + onChange) or leave to the component (defaultValue); used by the form blocks' segmented controls, steppers and pickers.
useFormMotion
forms-use-form-motion
anime.js helpers for the form blocks: the reduced-motion preference, an entrance that plays once the form scrolls into view (its first frame applied before paint), useAnimeScope (animations reverted on unmount), useInView (to pause ambient loops off screen), useCountUp (numbers that count to new values), shake (an invalid submit) and releaseStyles (hands an element back to its classes).
useFormSubmit
forms-use-form-submit
The submit status every form block shows (idle, submitting, success): runs your onSubmit, waits for it when it returns a promise, and goes back to idle when it throws.
Select a component to view its code
Click on any item in the sidebar to get started
Select a component to view its information