Plugin Row
플러그인 이름, 버전, 업데이트와 켜기 스위치를 담은 행입니다.
@horon-ai/react
표시
Preview
GitHub toolsv1.4.0Update availableby Horon Labs
Database consolev0.9.2by Community
Usage
import { MenuItem, PluginRow } from "@horon-ai/react";
import { Code, GitBranch, Globe } from "@phosphor-icons/react";
import { useState } from "react";
export default function PluginRowDemo() {
const [enabled, setEnabled] = useState(true);
return (
<div className="w-full max-w-190 rounded-2xl bg-bg-default px-4">
<PluginRow
initials="GH"
name="GitHub tools"
version="v1.4.0"
updateBadge="Update available"
author="by Horon Labs"
verified
chips={[
{ id: "repos", label: "Repos", icon: <GitBranch aria-hidden /> },
{ id: "code", label: "Code", icon: <Code aria-hidden /> },
{ id: "web", label: "Web", icon: <Globe aria-hidden /> },
]}
enabled={enabled}
onEnabledChange={setEnabled}
onUpdate={() => undefined}
menu={
<>
<MenuItem>Details</MenuItem>
<MenuItem danger>Uninstall</MenuItem>
</>
}
/>
<PluginRow
initials="DB"
name="Database console"
version="v0.9.2"
author="by Community"
chips={[{ id: "sql", label: "SQL", icon: <Code aria-hidden /> }]}
enabled={false}
/>
</div>
);
}