Module exposing: FloatingPanelBody
// Source: https://github.com/chakra-ui/ark | License: MIT | Copyright 2024 Chakra Systems Inc
// Provided via justclaw.it.com; keep this notice with the code.
'use client'
import { mergeProps } from '@zag-js/react'
import { forwardRef } from 'react'
import { type HTMLProps, type PolymorphicProps, ark } from '../factory.ts'
import { useFloatingPanelContext } from './use-floating-panel-context.ts'
export interface FloatingPanelBodyBaseProps extends PolymorphicProps {}
export interface FloatingPanelBodyProps extends HTMLProps<'div'>, FloatingPanelBodyBaseProps {}
export const FloatingPanelBody = forwardRef<HTMLDivElement, FloatingPanelBodyProps>((props, ref) => {
const floatingPanel = useFloatingPanelContext()
const mergedProps = mergeProps(floatingPanel.getBodyProps(), props)
retu
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key