Settings ListSettings List
라벨과 스위치를 구분선으로 나눈 설정 목록 카드입니다.A settings card that separates label and switch rows with dividers.
표시Display
Solid
Keep working after I close the laptopRuns continue on your other devices.
Ask before sending emailDrafts wait for your approval.
Share usage with the team
Quick commandOpen the command palette from anywhere.
⌘K
Disabled optionManaged by your workspace admin.
Glass
Keep working after I close the laptopRuns continue on your other devices.
Ask before sending emailDrafts wait for your approval.
Share usage with the team
Quick commandOpen the command palette from anywhere.
⌘K
Disabled optionManaged by your workspace admin.
import { formatShortcut, SettingsKey, SettingsKeys, SettingsList, SettingsRow, SettingsSwitch, usePlatform, } from "@horon-ai/react"; function Rows({ surface }: { surface: "solid" | "glass" }) { const { os } = usePlatform(); return ( <SettingsList surface={surface} className="w-full max-w-120"> <SettingsRow title="Keep working after I close the laptop" description="Runs continue on your other devices." control={<SettingsSwitch defaultChecked aria-label="Keep working" />} /> <SettingsRow title="Ask before sending email" description="Drafts wait for your approval." control={<SettingsSwitch defaultChecked aria-label="Ask before sending" />} /> <SettingsRow title="Share usage with the team" control={<SettingsSwitch aria-label="Share usage" />} /> <SettingsRow title="Quick command" description="Open the command palette from anywhere." control={ <SettingsKeys> <SettingsKey>{formatShortcut("Mod", os)}</SettingsKey> <SettingsKey>K</SettingsKey> </SettingsKeys> } /> <SettingsRow title="Disabled option" description="Managed by your workspace admin." control={<SettingsSwitch disabled aria-label="Disabled" />} /> </SettingsList> ); } export default function SettingsListDemo() { return ( <div className="flex w-full flex-col gap-6"> <div className="flex flex-col gap-3"> <p className="text-caption text-text-secondary">Solid</p> <div className="flex w-full justify-center"> <Rows surface="solid" /> </div> </div> <div className="flex flex-col gap-3"> <p className="text-caption text-text-secondary">Glass</p> <> <Rows surface="glass" /> </> </div> </div> ); }