# Palermo Prompt Input

The message field, with attachments, pickers, tools and a send button.

Build a Prompt Input in this project that looks and behaves like Palermo's. Measured from the running Palermo app (palermo.tryprofound.com). Keep every value exact. Map the tokens onto the project's own theme variables instead of hard-coding them. Use the project's own component library for behaviour, or Base UI primitives if it has none.

Fidelity: Partly measured from Palermo docs /docs/composer idle, working, disabled, attachment, footer end, top surface and bottom surface states, and the tryprofound.com AI Marketer composer, light and dark. The bars use Palermo's top and bottom surfaces on a bg-secondary wash. The mode picker, model picker, context ring and send's voice icon are hidden, since Palermo has none. The mic sits 2px from send. The error submit state and the bottom bar's dismiss are derived. No reference has been captured yet.

## Tokens

| Token | Light | Dark |
| --- | --- | --- |
| `--color-bg-primary` | `#fff` | `#171615` |
| `--color-bg-secondary` | `#fafafa` | `#1e1d1c` |
| `--color-bg-tertiary` | `#f5f5f5` | `#272625` |
| `--color-fill-primary` | `#18181a` | `#f5f4f2` |
| `--color-fill-primary-hover` | `#2c2c2e` | `#ecebe9` |
| `--color-fill-red` | `#fb2c36` | `#ff6568` |
| `--color-fill-red-hover` | `color-mix(in oklch, #fb2c36 90%, transparent)` | `color-mix(in oklch, #ff6568 90%, #121110 10%)` |
| `--color-text-white` | `#fff` | `#fff` |
| `--color-control-bg` | `#fff` | `#252423` |
| `--color-control-hover` | `#f5f5f5` | `#31302e` |
| `--color-text-inverse` | `#fff` | `#0f0e0d` |
| `--text-primary` | `#18181a` | `#ecebe9` |
| `--text-secondary` | `#787878` | `#aaa8a5` |
| `--text-tertiary` | `#969696` | `#898784` |
| `--text-quaternary` | `#b4b4b4` | `#676563` |
| `--shadow-low` | `var(--surface-shadow-low), var(--shadow-border)` | `var(--surface-shadow-low), var(--shadow-border)` |
| `--shadow-medium` | `var(--surface-shadow-medium), var(--shadow-border)` | `var(--surface-shadow-medium), var(--shadow-border)` |
| `--shadow-low-focus` | `var(--surface-shadow-low), var(--shadow-border), var(--shadow-solid-border), var(--shadow-focus)` | `var(--surface-shadow-low), var(--shadow-border), var(--shadow-solid-border), var(--shadow-focus)` |
| `--focus-ring` | `#006bff` | `#006bff` |
| `--font-regular` | `"Profound Inter", "Inter Variable", "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif` | `"Profound Inter", "Inter Variable", "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif` |
| `--font-size-mini` | `0.75rem` | `0.75rem` |
| `--font-size-small` | `0.8125rem` | `0.8125rem` |
| `--font-size-regular` | `0.875rem` | `0.875rem` |
| `--line-height-mini` | `16px` | `16px` |
| `--line-height-small` | `18px` | `18px` |
| `--line-height-regular` | `20px` | `20px` |
| `--font-weight-normal` | `400` | `400` |
| `--font-weight-medium` | `500` | `500` |
| `--radius-rounded` | `9999px` | `9999px` |
| `--radius-8` | `8px` | `8px` |
| `--radius-composer` | `20px` | `20px` |
| `--composer-working-spectrum` | `linear-gradient( 90deg, var(--composer-working-accent) 0%, var(--composer-working-accent) 5%, color-mix(in oklch, var(--composer-working-accent) 72%, var(--color-bg-base)) 16%, color-mix(in oklch, var(--composer-working-accent) 28%, var(--color-bg-base)) 22%, color-mix(in oklch, var(--composer-working-accent) 90%, var(--color-bg-base)) 34%, color-mix(in oklch, var(--composer-working-accent) 18%, var(--color-bg-base)) 44%, var(--color-bg-base) 50%, color-mix(in oklch, var(--composer-working-accent) 40%, var(--color-bg-base)) 55%, var(--composer-working-accent) 62%, color-mix(in oklch, var(--composer-working-accent) 55%, var(--color-bg-base)) 78%, color-mix(in oklch, var(--composer-working-accent) 12%, var(--color-bg-base)) 86%, var(--composer-working-accent) 100% )` | `linear-gradient( 90deg, var(--composer-working-accent) 0%, var(--composer-working-accent) 5%, color-mix(in oklch, var(--composer-working-accent) 72%, var(--color-bg-base)) 16%, color-mix(in oklch, var(--composer-working-accent) 28%, var(--color-bg-base)) 22%, color-mix(in oklch, var(--composer-working-accent) 90%, var(--color-bg-base)) 34%, color-mix(in oklch, var(--composer-working-accent) 18%, var(--color-bg-base)) 44%, var(--color-bg-base) 50%, color-mix(in oklch, var(--composer-working-accent) 40%, var(--color-bg-base)) 55%, var(--composer-working-accent) 62%, color-mix(in oklch, var(--composer-working-accent) 55%, var(--color-bg-base)) 78%, color-mix(in oklch, var(--composer-working-accent) 12%, var(--color-bg-base)) 86%, var(--composer-working-accent) 100% )` |
| `--ease-out` | `cubic-bezier(0, 0, 0.2, 1)` | `cubic-bezier(0, 0, 0.2, 1)` |
| `--ease-fade` | `ease-out` | `ease-out` |
| `--default-transition-duration` | `150ms` | `150ms` |
| `--duration-fade` | `200ms` | `200ms` |
| `--duration-press` | `300ms` | `300ms` |
| `--duration-working-fade` | `280ms` | `280ms` |

## CSS

Scoped under `[data-style="palermo"]`; dark rules sit under `[data-theme="dark"]`. The `ui-*` classes and data attributes match the structure below.

```css
[data-style="palermo"] {
  .ui-prompt-input-frame {
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--text-primary);
    font-family: var(--font-regular);
    -webkit-font-smoothing: antialiased;

    & > .ui-prompt-input {
      z-index: 1;
    }
  }

  .ui-prompt-input-frame:has(> .ui-prompt-input-bar)::before {
    content: "";
    position: absolute;
    inset: -4px;
    z-index: -1;
    border-radius: calc(var(--radius-composer) + 4px);
    background-color: var(--color-bg-secondary);
    pointer-events: none;
  }

  .ui-prompt-input-bar {
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--text-primary);
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-mini);
  }

  .ui-prompt-input-bar[data-side="top"] {
    margin-bottom: -12px;
    padding: 12px 14px 24px;
  }

  .ui-prompt-input-bar[data-side="bottom"] {
    margin-top: -12px;
    padding: 24px 10px 10px 14px;
    color: var(--text-secondary);
    font-weight: var(--font-weight-normal);
  }

  .ui-prompt-input-bar-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ui-prompt-input-bar .ui-prompt-input-button {
    min-height: 24px;
    padding: 0 6px;
    border-radius: var(--radius-8);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);

    & svg {
      width: 14px;
      height: 14px;
    }
  }

  .ui-prompt-input-bar[data-side="bottom"] .ui-prompt-input-button[data-icon-only] {
    width: 24px;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    color: var(--text-tertiary);

    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--color-bg-tertiary);
        color: var(--text-primary);
      }
    }

    &:focus-visible {
      box-shadow: var(--shadow-low-focus);
    }
  }

  .ui-prompt-input {
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: var(--radius-composer);
    color: var(--text-primary);
    font-family: var(--font-regular);
    font-size: var(--font-size-regular);
    line-height: var(--line-height-regular);
    -webkit-font-smoothing: antialiased;
    cursor: text;

    &::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      border-radius: inherit;
      background-color: var(--color-bg-primary);
      box-shadow: var(--shadow-medium);
      pointer-events: none;
    }
  }

  .ui-prompt-input:has(.ui-prompt-input-submit:is([data-status="streaming"], [data-status="submitted"]))::before {
    content: "";
    position: absolute;
    top: 0.58rem;
    right: 4px;
    left: 4px;
    z-index: -2;
    height: 1rem;
    background-image: var(--composer-working-spectrum);
    background-size: 200% 100%;
    filter: blur(0.65rem);
    opacity: 0.4;
    translate: 0 -50%;
    pointer-events: none;
    animation:
      palermo-prompt-input-working-in var(--duration-working-fade) var(--ease-fade) backwards,
      palermo-prompt-input-working-shift 4.4s linear infinite;
  }

  @media (prefers-reduced-motion: reduce) {
    .ui-prompt-input:has(.ui-prompt-input-submit:is([data-status="streaming"], [data-status="submitted"]))::before {
      animation: palermo-prompt-input-working-in var(--duration-fade) var(--ease-fade) backwards;
    }
  }

  .ui-prompt-input-attachments {
    display: flex;
    gap: 8px;
    min-width: 0;
    margin: 10px 10px 12px 16px;
    padding: 6px 6px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ui-prompt-input-textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 22px;
    max-height: 200px;
    margin: 0 0 24px;
    padding: 16px 16px 0;
    border: none;
    background-color: transparent;
    color: inherit;
    font: inherit;
    font-size: var(--font-size-regular);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-regular);
    field-sizing: content;
    resize: none;
    outline: none;

    &::placeholder {
      color: var(--text-tertiary);
    }
  }

  .ui-prompt-input-attachments + .ui-prompt-input-textarea {
    padding-top: 0;
  }

  .ui-prompt-input-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px 10px;
  }

  .ui-prompt-input-tools {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 2px;
    min-width: 0;
  }

  .ui-prompt-input-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 28px;
    margin: 0;
    padding: 0 10px 0 8px;
    border: none;
    border-radius: var(--radius-rounded);
    background-color: var(--color-control-bg);
    box-shadow: var(--shadow-low);
    color: var(--text-primary);
    font: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    transition:
      scale var(--duration-press) var(--ease-out),
      background-color var(--default-transition-duration) var(--ease-out);

    & svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }

    &:focus-visible {
      box-shadow: var(--shadow-low-focus);
    }

    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--color-control-hover);
      }
    }

    &:active:not([data-disabled]) {
      scale: 0.97;
    }

    &[data-disabled] {
      box-shadow: none;
      color: var(--text-quaternary);
      cursor: not-allowed;
    }
  }

  .ui-prompt-input-button[data-icon-only] {
    width: 28px;
    padding: 0 6px;
  }

  .ui-prompt-input-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 2px;
  }

  .ui-prompt-input-footer .ui-model-selector-trigger,
  .ui-prompt-input-actions .ui-context-trigger {
    display: none;
  }

  .ui-prompt-input-actions + .ui-prompt-input-submit {
    margin-inline-start: -6px;
  }

  .ui-prompt-input-submit-voice {
    display: none;
  }

  .ui-prompt-input-submit {
    box-sizing: border-box;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: var(--radius-rounded);
    background-color: var(--color-fill-primary);
    color: var(--color-text-inverse);
    cursor: pointer;
    outline: none;
    transition:
      scale var(--duration-press) var(--ease-out),
      background-color var(--default-transition-duration) var(--ease-out),
      color var(--default-transition-duration) var(--ease-out);

    & svg {
      width: 16px;
      height: 16px;
    }

    &:focus-visible {
      outline: 2px solid var(--focus-ring);
      outline-offset: 2px;
    }

    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--color-fill-primary-hover);
      }
    }

    &:active:not([data-disabled]) {
      scale: 0.97;
    }

    &[data-disabled] {
      background-color: transparent;
      color: var(--text-quaternary);
      cursor: default;
    }
  }

  .ui-prompt-input-submit:is([data-status="streaming"], [data-status="submitted"]) {
    background-color: transparent;
    color: var(--text-primary);

    & svg {
      width: 14px;
      height: 14px;
    }

    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--color-bg-tertiary);
      }
    }
  }

  .ui-prompt-input-submit[data-status="error"] {
    background-color: var(--color-fill-red);
    color: var(--color-text-white);

    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--color-fill-red-hover);
      }
    }
  }

  &[data-theme="dark"] .ui-prompt-input-button {
    background-color: var(--color-bg-secondary);

    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--color-control-bg);
      }
    }
  }
}

@keyframes palermo-prompt-input-working-in {
  from {
    opacity: 0;
  }
}

@keyframes palermo-prompt-input-working-shift {
  from {
    background-position: 0% 0;
  }

  to {
    background-position: 200% 0;
  }
}
```

## Structure

How Replicas assembles it on Base UI.

```tsx
import { Button as BaseButton } from "@base-ui/react/button";
import type { ComponentProps } from "react";
import { join } from "./utils";

function Frame({ className, ...props }: ComponentProps<"div">) {
  return <div className={join("ui-prompt-input-frame", className)} {...props} />;
}

type BarProps = ComponentProps<"div"> & { side?: "top" | "bottom" };

function Bar({ className, side = "top", ...props }: BarProps) {
  return <div className={join("ui-prompt-input-bar", className)} data-side={side} {...props} />;
}

function BarLabel({ className, ...props }: ComponentProps<"span">) {
  return <span className={join("ui-prompt-input-bar-label", className)} {...props} />;
}

function Root({ className, ...props }: ComponentProps<"form">) {
  return <form className={join("ui-prompt-input", className)} {...props} />;
}

function Attachments({ className, ...props }: ComponentProps<"div">) {
  return <div className={join("ui-prompt-input-attachments", className)} {...props} />;
}

function Textarea({ className, rows = 1, onKeyDown, ...props }: ComponentProps<"textarea">) {
  return (
    <textarea
      className={join("ui-prompt-input-textarea", className)}
      rows={rows}
      onKeyDown={(event) => {
        onKeyDown?.(event);
        if (event.defaultPrevented || event.key !== "Enter" || event.shiftKey || event.nativeEvent.isComposing) return;
        event.preventDefault();
        event.currentTarget.form?.requestSubmit();
      }}
      {...props}
    />
  );
}

function Footer({ className, ...props }: ComponentProps<"div">) {
  return <div className={join("ui-prompt-input-footer", className)} {...props} />;
}

function Tools({ className, ...props }: ComponentProps<"div">) {
  return <div className={join("ui-prompt-input-tools", className)} {...props} />;
}

function Actions({ className, ...props }: ComponentProps<"div">) {
  return <div className={join("ui-prompt-input-actions", className)} {...props} />;
}

type ButtonProps = Omit<BaseButton.Props, "className"> & { className?: string; iconOnly?: boolean };

function Button({ className, iconOnly = false, ...props }: ButtonProps) {
  return <BaseButton className={join("ui-prompt-input-button", className)} data-icon-only={iconOnly || undefined} {...props} />;
}

type SubmitProps = Omit<BaseButton.Props, "className"> & {
  className?: string;
  status?: "ready" | "submitted" | "streaming" | "error";
  empty?: boolean;
};

function Submit({ className, status = "ready", empty = false, children, ...props }: SubmitProps) {
  const streaming = status === "streaming" || status === "submitted";
  return (
    <BaseButton
      className={join("ui-prompt-input-submit", className)}
      type={streaming ? "button" : "submit"}
      aria-label={streaming ? "Stop" : "Send"}
      data-status={status}
      data-empty={empty || undefined}
      {...props}
    >
      {children ??
        (streaming ? (
          <svg viewBox="0 0 16 16" fill="currentColor" aria-hidden>
            <rect x="4" y="4" width="8" height="8" rx="1.5" />
          </svg>
        ) : (
          <>
            <svg className="ui-prompt-input-submit-send" viewBox="0 0 16 16" fill="none" aria-hidden>
              <path d="M8 13V3M4 7l4-4 4 4" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
            </svg>
            <svg className="ui-prompt-input-submit-voice" viewBox="0 0 16 16" fill="none" aria-hidden>
              <path d="M4 6.5v3M6.67 4v8M9.33 5.5v5M12 7v2" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" />
            </svg>
          </>
        ))}
    </BaseButton>
  );
}

export const PromptInput = {
  Frame,
  Bar,
  BarLabel,
  Root,
  Attachments,
  Textarea,
  Footer,
  Tools,
  Actions,
  Button,
  Submit,
};
```

## Example

```tsx
import { Attachment, Context, ModelSelector, PromptInput } from "@replicas/ui";
import { useState } from "react";

const photo =
  "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f6c9a8'/%3E%3Cstop offset='1' stop-color='%23f2e4d3'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='96' height='96' fill='url(%23s)'/%3E%3Ccircle cx='66' cy='30' r='10' fill='%23fff3e6'/%3E%3Cpath d='M0 70l26-22 18 14 16-12 36 28v18H0z' fill='%238aa58c'/%3E%3Cpath d='M0 80l30-16 24 12 18-8 24 12v16H0z' fill='%235f7f63'/%3E%3C/svg%3E";

const models = ["Large", "Medium", "Small"];
const modes = [
  { name: "Ask every time", description: "Check with you before each command and edit." },
  { name: "Approve for me", description: "Run safe actions and ask before anything risky." },
];

const spark = (
  <svg viewBox="0 0 16 16" fill="none">
    <path d="M8 2l1.4 3.6L13 7l-3.6 1.4L8 12l-1.4-3.6L3 7l3.6-1.4z" stroke="currentColor" strokeWidth="1.25" strokeLinejoin="round" />
  </svg>
);

export default function PromptInputDemo() {
  const [text, setText] = useState("");
  const [model, setModel] = useState("Large");
  const [mode, setMode] = useState("Approve for me");
  const [files, setFiles] = useState(["hillside.png", "schema.sql"]);
  const [connect, setConnect] = useState(true);
  const remove = (name: string) => setFiles(files.filter((file) => file !== name));

  return (
    <PromptInput.Frame style={{ width: "100%", maxWidth: 560 }}>
      <PromptInput.Bar side="top">
        <PromptInput.Button>
          <svg viewBox="0 0 16 16" fill="none" aria-hidden>
            <rect x="2.5" y="3.5" width="11" height="7.5" rx="1" stroke="currentColor" strokeWidth="1.25" />
            <path d="M1.5 13h13" stroke="currentColor" strokeWidth="1.25" strokeLinecap="round" />
          </svg>
          This computer
        </PromptInput.Button>
        <PromptInput.Button>
          <svg viewBox="0 0 16 16" fill="none" aria-hidden>
            <path d="M2 4.5c0-.55.45-1 1-1h3l1.5 1.5H13c.55 0 1 .45 1 1V12c0 .55-.45 1-1 1H3c-.55 0-1-.45-1-1z" stroke="currentColor" strokeWidth="1.25" strokeLinejoin="round" />
          </svg>
          replicas
        </PromptInput.Button>
      </PromptInput.Bar>
      <PromptInput.Root
        onSubmit={(event) => {
          event.preventDefault();
          setText("");
        }}
      >
        {files.length ? (
          <PromptInput.Attachments>
            {files.includes("hillside.png") ? (
              <Attachment.Root type="image" kind="image">
                <Attachment.Preview src={photo} alt="Hillside at sunset" />
                <Attachment.Remove label="Remove hillside.png" onClick={() => remove("hillside.png")} />
              </Attachment.Root>
            ) : null}
            {files.includes("schema.sql") ? (
              <Attachment.Root kind="code">
                <Attachment.Preview extension="SQL" />
                <Attachment.Name>schema.sql</Attachment.Name>
                <Attachment.Remove label="Remove schema.sql" onClick={() => remove("schema.sql")} />
              </Attachment.Root>
            ) : null}
          </PromptInput.Attachments>
        ) : null}
        <PromptInput.Textarea aria-label="Message" placeholder="Ask anything" value={text} onChange={(event) => setText(event.target.value)} />
        <PromptInput.Footer>
          <PromptInput.Tools>
            <PromptInput.Button iconOnly aria-label="Add files">
              <svg viewBox="0 0 16 16" fill="none" aria-hidden>
                <path d="M8 3.5v9M3.5 8h9" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" />
              </svg>
            </PromptInput.Button>
            <ModelSelector.Root>
              <ModelSelector.Trigger aria-label={`Permissions: ${mode}`}>{mode}</ModelSelector.Trigger>
              <ModelSelector.Popup>
                <ModelSelector.Group>
                  <ModelSelector.Label>How should the agent ask for approval?</ModelSelector.Label>
                  <ModelSelector.RadioGroup value={mode} onValueChange={setMode}>
                    {modes.map((option) => (
                      <ModelSelector.Item key={option.name} value={option.name} description={option.description}>
                        {option.name}
                      </ModelSelector.Item>
                    ))}
                  </ModelSelector.RadioGroup>
                </ModelSelector.Group>
              </ModelSelector.Popup>
            </ModelSelector.Root>
          </PromptInput.Tools>
          <PromptInput.Actions>
            <Context.Root>
              <Context.Trigger value={84_300} max={200_000} />
              <Context.Popup>
                <Context.Header value="84.3K / 200K" />
                <Context.Bar value={84_300} max={200_000} />
              </Context.Popup>
            </Context.Root>
            <ModelSelector.Root>
              <ModelSelector.Trigger aria-label={`Model: ${model}, high effort`} icon={spark} detail="High">
                {model}
              </ModelSelector.Trigger>
              <ModelSelector.Popup align="end">
                <ModelSelector.RadioGroup value={model} onValueChange={setModel}>
                  {models.map((name) => (
                    <ModelSelector.Item key={name} value={name}>
                      {name}
                    </ModelSelector.Item>
                  ))}
                </ModelSelector.RadioGroup>
              </ModelSelector.Popup>
            </ModelSelector.Root>
            <PromptInput.Button iconOnly aria-label="Dictate">
              <svg viewBox="0 0 16 16" fill="none" aria-hidden>
                <rect x="6" y="2" width="4" height="7.5" rx="2" stroke="currentColor" strokeWidth="1.25" />
                <path d="M3.75 7.5a4.25 4.25 0 0 0 8.5 0M8 11.75V14" stroke="currentColor" strokeWidth="1.25" strokeLinecap="round" />
              </svg>
            </PromptInput.Button>
          </PromptInput.Actions>
          <PromptInput.Submit empty={!text.trim() && !files.length} disabled={!text.trim() && !files.length} />
        </PromptInput.Footer>
      </PromptInput.Root>
      {connect ? (
        <PromptInput.Bar side="bottom">
          <PromptInput.BarLabel>Connect your apps for better answers</PromptInput.BarLabel>
          <PromptInput.Button iconOnly aria-label="Dismiss" onClick={() => setConnect(false)}>
            <svg viewBox="0 0 16 16" fill="none" aria-hidden>
              <path d="M4.5 4.5l7 7M11.5 4.5l-7 7" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" />
            </svg>
          </PromptInput.Button>
        </PromptInput.Bar>
      ) : null}
    </PromptInput.Frame>
  );
}
```

## Foundations

The rest of the Palermo style, as a skill: https://replicas.raphaelsalaja.com/skills/palermo/SKILL.md