Resizable
skyroc-ui/resizableFreeBlock
skyroc-ui publishes no description for this item.
Install it
npx shadcn@latest add https://ui-play.skyroc.me/r/resizable.jsonSource
1import { Slot } from '@radix-ui/react-slot';2import { GripVertical } from 'lucide-react';3import { PanelResizeHandle } from 'react-resizable-panels';4import { cn } from '@/lib/utils';5import { resizableVariants } from './resizable-variants';6import type { ResizableHandleProps } from './types';78const ResizableHandle = (props: ResizableHandleProps) => {9 const { children, className, classNames, size, withHandle, ...rest } = props;1011 const { handle, handleIcon, handleIconRoot } = resizableVariants({ size });1213 const mergedCls = {14 handle: cn(handle(), className),15 handleIcon: cn(handleIcon(), classNames?.handleIcon),16 handleIconRoot: cn(handleIconRoot(), classNames?.handleIconRoot)17 };1819 return (20 <PanelResizeHandle21 className={mergedCls.handle}22 {...rest}23 >24 {withHandle25 ? (26 <div className={mergedCls.handleIconRoot}>27 <Slot className={mergedCls.handleIcon}>{children || <GripVertical />}</Slot>28 </div>29 )30 : null}31 </PanelResizeHandle>32 );33};3435export default ResizableHandle;
What it pulls in
Other registry items
Files it writes
More from skyroc-ui
All 58 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | skyroc-ui | Blocks | Free | 2 deps · 10 files | |
| Alertalert | skyroc-ui | Blocks | Free | 1 dep · 9 files | |
| Alert Dialogalert-dialog | skyroc-ui | Blocks | Free | 2 deps · 13 files | |
| Arrowarrow | skyroc-ui | Blocks | Free | no deps | |
| Aspect Ratioaspect-ratio | skyroc-ui | Blocks | Free | 1 dep · 4 files | |
| Avataravatar | skyroc-ui | Blocks | Free | 1 dep · 8 files | |
| Badgebadge | skyroc-ui | Blocks | Free | no deps · 7 files | |
| Bottom Sheetbottom-sheet | skyroc-ui | Blocks | Free | no deps · 12 files |
