import { AppProvider } from "@godxjp/ui/app"; import { Avatar, AvatarFallback, Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@godxjp/ui/data-display"; import { Text } from "@godxjp/ui/general"; import { Flex, PageContainer, Topbar } from "@godxjp/ui/layout"; import { AppSettingToggle } from "@godxjp/ui/navigation"; /** * AppSettingToggle — ONE button that steps a single AppProvider setting to its next value and * shows that value as its glyph. The no-menu counterpart to AppSettingPicker: same binding * contract, same option order, one tap instead of open-then-choose. `appearance="bar"` (the * default) is a CELL of the bar — full bar height, the bar's own hover surface, square corners. */ export default function Demo() { return ( トップバーのセル(既定) appearance="bar" はバーの一部として全高で伸び、角は --topbar-item-radius。--control-height の錠剤がバーの中に浮くことはない。 G } end={ <> } /> バー以外(appearance="icon") 設定行やカードヘッダーなど、バーではない場所。--control-height の正方形ゴーストボタン。 テーマ 時刻形式 制御モードと無効化 value + onValueChange で外部状態に紐づけ、disabled で操作を止める。 {}} id="controlled-density-toggle" /> ); }