Skip to main content

ScrollToTopFABProps

Stock Screening Platform - Frontend API v0.1.0


Stock Screening Platform - Frontend API / components/common/ScrollToTopFAB / ScrollToTopFABProps

Interface: ScrollToTopFABProps

Defined in: src/components/common/ScrollToTopFAB.tsx:13

Props for ScrollToTopFAB component

Properties

threshold?

optional threshold: number

Defined in: src/components/common/ScrollToTopFAB.tsx:18

Scroll threshold in pixels to show button

Default

200

bottom?

optional bottom: string

Defined in: src/components/common/ScrollToTopFAB.tsx:24

Position from bottom of viewport

Default

'2rem'

optional right: string

Defined in: src/components/common/ScrollToTopFAB.tsx:30

Position from right of viewport

Default

'2rem'

scrollContainer?

optional scrollContainer: string | HTMLElement | null

Defined in: src/components/common/ScrollToTopFAB.tsx:36

Scroll container selector or element If not provided, uses window scroll


behavior?

optional behavior: ScrollBehavior

Defined in: src/components/common/ScrollToTopFAB.tsx:42

Scroll behavior

Default

'smooth'