Bottom Sheet
skyroc-ui/bottom-sheetFreeBlock
skyroc-ui publishes no description for this item.
Install it
npx shadcn@latest add https://ui-play.skyroc.me/r/bottom-sheet.jsonSource
1'use client';23import type { ComponentRef } from 'react';4import { forwardRef } from 'react';5import type { Content } from 'vaul';6import { useComponentConfig } from '../config-provider/context';7import BottomSheetUI from './BottomSheetUI';8import type { BottomSheetProps } from './types';910const BottomSheet = forwardRef<ComponentRef<typeof Content>, BottomSheetProps>((props, ref) => {11 const config = useComponentConfig('bottomSheet');1213 const mergedProps = {14 ...config,15 ...props16 };1718 return (19 <BottomSheetUI20 {...mergedProps}21 ref={ref}22 />23 );24});2526BottomSheet.displayName = 'BottomSheet';2728export default BottomSheet;
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 | |
| Breadcrumbbreadcrumb | skyroc-ui | Blocks | Free | 1 dep · 12 files |
