Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Drawer
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Toggle Group
- Tooltip
- Typography
Get Started
@shadcn/react
@shadcn/helpers
Force UI registry
Utilities
Installation#
pnpm dlx shadcn@latest add @force-ui-svelte/hover-card
Usage#
<script lang="ts">
import * as HoverCard from "$lib/components/ui/hover-card/index.js";
</script><HoverCard.Root>
<HoverCard.Trigger>Hover</HoverCard.Trigger>
<HoverCard.Content>
SvelteKit - Web development, streamlined
</HoverCard.Content>
</HoverCard.Root>Composition#
Use the following composition to build a HoverCard:
HoverCard.Root
├── HoverCard.Trigger
└── HoverCard.ContentTrigger Delays#
Use openDelay and closeDelay on the HoverCard.Root to control when the card opens and
closes.
<HoverCard.Root openDelay={100} closeDelay={200}>
<HoverCard.Trigger>Hover</HoverCard.Trigger>
<HoverCard.Content>Content</HoverCard.Content>
</HoverCard.Root>Positioning#
Use the side and align props on HoverCard.Content to control placement.
<HoverCard.Root>
<HoverCard.Trigger>Hover</HoverCard.Trigger>
<HoverCard.Content side="top" align="start">
Content
</HoverCard.Content>
</HoverCard.Root>Examples#
Basic#
Sides#
RTL#
To enable RTL support in Force UI, see the RTL configuration guide.
API Reference#
See the Radix UI documentation for more information.
Deploy your shadcn/ui app on Vercel
Trusted by OpenAI, Sonos, Adobe, and more.
Vercel provides tools and infrastructure to deploy apps and features at scale.
Deploy to Vercel