MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / Scrollable

Function Scrollable

packages/frontend/src/ui/scrollable.tsx:41–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39export const Scrollable: s.ParentComponent<
40 s.ComponentProps<'div'> & {contentProps?: s.ComponentProps<'div'>}
41> = props => {
42 const container_props = combineProps(props, {
43 class: clsx(
44 custom_scrollbar,
45 'relative z-0 w-full h-full overflow-auto overflow-overlay overscroll-none',
46 ),
47 })
48
49 const [, container_props_without_content] = s.splitProps(container_props, ['contentProps'])
50
51 const content_props = combineProps(() => props.contentProps ?? {}, {
52 class: 'relative min-w-full min-h-full w-max h-max overflow-hidden',
53 get children() {
54 return props.children
55 },
56 })
57
58 return (
59 <div {...container_props_without_content}>
60 <div class="absolute inset-0 z-1 pointer-events-none"></div>
61 <div {...content_props} />
62 </div>
63 )
64}
65
66// import { ComponentProps, createComputed, createSignal, ParentComponent } from 'solid-js'
67// import { createKeyHold } from '@solid-primitives/keyboard'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…