Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Attachment
- Avatar
- Badge
- Breadcrumb
- Bubble
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Direction
- Drawer
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Marker
- Message
- Message Scroller
- Native Select
- Pagination
- Popover
- Progress
- Questionnaire
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toast
- Toggle
- Toggle Group
- Tooltip
- Typography
Sections
@shadcn/react
@shadcn/helpers
Utilities
import { Button } from "@/components/ui/aria/button"
import { Input } from "@/components/ui/aria/input"
import { Label } from "@/components/ui/aria/label"インストール#
pnpm dlx shadcn@latest add popover
使い方#
import {
Popover,
PopoverDescription,
PopoverHeader,
PopoverTitle,
PopoverTrigger,
} from "@/components/ui/popover"<PopoverTrigger>
<Button variant="outline">Open Popover</Button>
<Popover>
<PopoverHeader>
<PopoverTitle>Title</PopoverTitle>
<PopoverDescription>Description text here.</PopoverDescription>
</PopoverHeader>
</Popover>
</PopoverTrigger>構成#
Popover を構築するには、次の構成を使用します。
PopoverTrigger
├── Button
└── Popover基本#
ヘッダー、タイトル、説明を含むシンプルなポップオーバー。
import { Button } from "@/components/ui/aria/button"
import {
Popover,配置#
Popover の placement プロパティを使用して、水平方向の配置を制御します。
import { Button } from "@/components/ui/aria/button"
import { Popover, PopoverTrigger } from "@/components/ui/aria/popover"
フォーム付き#
内部にフォームフィールドを含むポップオーバー。
import { Button } from "@/components/ui/aria/button"
import { Field, FieldGroup, FieldLabel } from "@/components/ui/aria/field"
import { Input } from "@/components/ui/aria/input"RTL#
shadcn/ui で RTL サポートを有効にするには、RTL 構成ガイド を参照してください。
"use client"
import {API リファレンス#
詳細については、React Aria Popover ドキュメントを参照してください。
shadcn/uiアプリをVercelにデプロイ
OpenAI、Sonos、Adobeなどに採用されています。
Vercelは、アプリや機能を大規模にデプロイするためのツールと インフラを提供します。
Vercelにデプロイ