| 39 | export 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' |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…