Directory CardDirectory Card
디렉터리 항목을 소개하는 카드입니다. onAdd를 넘기면 추가 버튼이 나타납니다.A card that introduces a directory entry. The add button appears when onAdd is passed.
표시Display
Solid
GitHubRead issues, open pull requests, and review code.
NotionSearch pages and databases, then draft new notes from a conversation with your team.
Local files
Glass
GitHubRead issues, open pull requests, and review code.
NotionSearch pages and databases, then draft new notes from a conversation with your team.
Local files
import { DirectoryCard } from "@horon-ai/react"; import { Folder, GithubLogo, Notebook } from "@phosphor-icons/react"; function Examples({ surface }: { surface: "solid" | "glass" }) { return ( <div className="flex w-full flex-col items-center gap-3"> <DirectoryCard surface={surface} className="w-full max-w-100" icon={<GithubLogo />} name="GitHub" description="Read issues, open pull requests, and review code." onAdd={() => undefined} /> <DirectoryCard surface={surface} className="w-full max-w-100" icon={<Notebook />} name="Notion" description="Search pages and databases, then draft new notes from a conversation with your team." onAdd={() => undefined} /> <DirectoryCard surface={surface} className="w-full max-w-100" icon={<Folder />} name="Local files" /> </div> ); } export default function DirectoryCardDemo() { return ( <div className="flex w-full flex-col gap-6"> <div className="flex w-full flex-col gap-4"> <p className="text-caption text-text-secondary">Solid</p> <Examples surface="solid" /> </div> <> <p className="text-caption text-text-secondary">Glass</p> <Examples surface="glass" /> </> </div> ); }