MessageScroller API
Every prop of the 6 parts MessageScroller exports, plus each of the 3 symbols it exports alongside them, generated from the package manifest.
import { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from '@oceanic-hub/brand-system'- Layer
- core — shadcn-derived primitives.
- Exports
- MessageScroller · MessageScrollerButton · MessageScrollerContent · MessageScrollerItem · MessageScrollerProvider · MessageScrollerViewport · useMessageScroller · useMessageScrollerScrollable · useMessageScrollerVisibilitytypes: MessageScrollerButtonProps · MessageScrollerContextValue · MessageScrollerProviderProps
- Contract
- packages/brand-system/src/components/message-scroller.contract.test-d.ts
- Demos
- 2 on the MessageScroller page — rendered live, hydrated
- Source
- packages/brand-system/src/components/message-scroller.tsx
Generated from manifest/component-manifest.json, so it cannot drift from the source. For what MessageScroller is for, how it composes and what it looks like, see MessageScroller.
MessageScroller
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
MessageScrollerButton
MessageScrollerButtonProps
Prop
Type
Also accepts everything from Omit<React.ComponentPropsWithoutRef<typeof Button>, 'variant' | 'size' | 'onClick'>.
MessageScrollerContent
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
MessageScrollerItem
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
MessageScrollerProvider
MessageScrollerProviderProps
Prop
Type
MessageScrollerViewport
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
useMessageScroller
A React hook.Call it inside a component rendered under this module's provider; outside one it throws, which is the contract rather than a bug.
(): MessageScrollerContextValueuseMessageScrollerScrollable
A React hook.Call it inside a component rendered under this module's provider; outside one it throws, which is the contract rather than a bug.
(): booleanuseMessageScrollerVisibility
A React hook.Call it inside a component rendered under this module's provider; outside one it throws, which is the contract rather than a bug.
(): boolean