API reference
components/scroll-to-bottom-blob
Import
Section titled “Import”import * as api from "@fungi.computer/caps/components/scroll-to-bottom-blob";Exports
Section titled “Exports”| Kind | Export | Description |
|---|---|---|
| type alias | ScrollToBottomBlobProps | Props accepted by the persistent jump-to-bottom water drop. |
| constant | ScrollToBottomBlob | A continuously tugged water drop, with its own visibility and focus lifecycle. |
ScrollToBottomBlobPropstype alias
Section titled “ScrollToBottomBlobProps”type ScrollToBottomBlobProps = object;Props accepted by the persistent jump-to-bottom water drop.
Properties
Section titled “Properties”direction?
Section titled “direction?”optional direction?: ScrollDirection;Forward is ordinary DOM order; reverse supports column-reverse scrollers.
scrollerRef
Section titled “scrollerRef”scrollerRef: RefObject<HTMLDivElement | null>;onJump
Section titled “onJump”onJump: () => void;Ask the host to scroll to its latest content.
Returns
Section titled “Returns”void
unread?
Section titled “unread?”optional unread?: number;Appended messages since the reader left the end.
focusAfterJump?
Section titled “focusAfterJump?”optional focusAfterJump?: RefObject<HTMLElement | null>;Focus destination after keyboard activation; defaults to the scroller.
ScrollToBottomBlobconstant
Section titled “ScrollToBottomBlob”const ScrollToBottomBlob: NamedExoticComponent<ScrollToBottomBlobProps>;A continuously tugged water drop, with its own visibility and focus lifecycle.