Components
ScrollArea
Code

ScrollArea

ScrollArea(props): null | ReactElement<any, string | JSXElementConstructor<any>>

Cross-browser scroll styling

Parameters

NameType
propsScrollAreaProps & RefAttributes<HTMLDivElement (opens in a new tab)>

Returns

null | ReactElement<any, string | JSXElementConstructor<any>>

Example

example.tsx
<ScrollArea>Content</ScrollArea>
import React from 'react'
import { ScrollArea } from '@vtex/shoreline-components'

export default function App() {
return (<>
<ScrollArea>
Content
</ScrollArea>
</>
)}

Defined in

node_modules/.pnpm/@types+react@18.2.14/node_modules/@types/react/ts5.0/index.d.ts:355