Double Helix Words
Usage
Properties
Speed
Gap
Distance
API References
Styles API
type T = "root" | "backbone" | "bases";
Styles API | Type | Default | Annotation |
---|---|---|---|
className? | string | undefined | pass to root component <div> |
classNames? | Partial<Record<T, string>> | undefined | |
style? | CSSProperties | undefined | pass to root component <div> |
styles? | Partial<Record<T, CSSProperties>> | undefined |
Props API
Props API | Type | Default | Annotation |
---|---|---|---|
el? | Partial<Record<T, React.ElementType>> | root: "article", backbone: "section", bases: "span" | |
placeholders? | string | string[] | undefined | |
gap? | number | 6 | |
distance? | number | 100 | |
speed? | number | 400 | |
duration? | number | 4000 |