(props: SplitterRootProps)
| 9 | export interface SplitterRootProps extends Assign<HTMLProps<'div'>, SplitterRootBaseProps> {} |
| 10 | |
| 11 | export const SplitterRoot = (props: SplitterRootProps) => { |
| 12 | const [useSplitterProps, localProps] = createSplitProps<UseSplitterProps>()(props, [ |
| 13 | 'defaultSize', |
| 14 | 'id', |
| 15 | 'ids', |
| 16 | 'keyboardResizeBy', |
| 17 | 'nonce', |
| 18 | 'onCollapse', |
| 19 | 'onExpand', |
| 20 | 'onResize', |
| 21 | 'onResizeEnd', |
| 22 | 'onResizeStart', |
| 23 | 'orientation', |
| 24 | 'panels', |
| 25 | 'size', |
| 26 | ]) |
| 27 | const api = useSplitter(useSplitterProps) |
| 28 | const mergedProps = mergeProps(() => api().getRootProps(), localProps) |
| 29 | |
| 30 | return ( |
| 31 | <SplitterProvider value={api}> |
| 32 | <ark.div {...mergedProps} /> |
| 33 | </SplitterProvider> |
| 34 | ) |
| 35 | } |
nothing calls this directly
no test coverage detected