Skip to content
العربية
App patterns

ValueRow

A setting shown as text, with an optional copy button and an action such as Edit. Use it also for a person who may not change the value.

import { ValueRow } from "@percentsa/ui";

Examples

Start and health

Start command

bun run start

Address

shop.example.com

Monthly plan

49

Health check path

Not set
Code
export function ValueRowExample() {
  const t = useT();
  return (
    <SettingsSection className="w-full max-w-2xl" title={t("Start and health", "التشغيل والفحص")}>
      <ValueRow label={t("Start command", "أمر التشغيل")} value="bun run start" mono action={<Button variant="ghost" size="sm">{t("Edit", "تعديل")}</Button>} />
      <ValueRow label={t("Address", "العنوان")} value="shop.example.com" copy="shop.example.com" />
      <ValueRow label={t("Monthly plan", "الخطة الشهرية")} value={<Money amount={49} />} />
      <ValueRow label={t("Health check path", "مسار فحص الصحة")} value="" />
    </SettingsSection>
  );
}