Skip to content
Kits

UserAsk

Keyboard-first agent question panel that temporarily replaces the chat composer inside its container.

Composition

Anatomy

  • <UserAsk>
    • <UserAskHeader>
      • <UserAskTitle />
      • <UserAskPagination />
      </UserAskHeader>
    • <UserAskQuestion>
      • <UserAskOption>
        • <UserAskOptionLabel />
        • <UserAskOptionDescription />
        </UserAskOption>
      • <UserAskOptionInput />
      </UserAskQuestion>
    • <UserAskFooter>
      • <UserAskDismiss />
      • <UserAskSubmit />
      </UserAskFooter>
    </UserAsk>

Installation

Use this command to install the component.

Registry command
See registry manifest

Usage

Dependencies

Behavior hooksrc/registry/hooks/use-user-ask.tsHook
ButtonbuttonPrimitiveKbdkbdPrimitiveLive statuslive-statusPrimitive

Raw code

Installed component source and support files

src/registry/sources/control-ui/user-ask.tsx

Knobs

Typed custom properties the recipe paints with. Set one on the root — style, a utility class, or a skin — and every slot inherits it.

--cui-user-ask-* · 17 knobsHow the cascade resolves
--cui-user-ask-radius<length-percentage>var(--radius-popover)
--cui-user-ask-padding<length-percentage>calc(var(--spacing) * 3)
--cui-user-ask-backdrop-filter*blur(var(--backdrop-blur-popover))
--cui-user-ask-indicator-radius<length-percentage>9999px
--cui-user-ask-indicator-multiple-radius<length-percentage>var(--radius-sm)
--cui-user-ask-background<color>var(--popover)
--cui-user-ask-foreground<color>var(--popover-foreground)
--cui-user-ask-border-color<color>var(--control-rim)
--cui-user-ask-border-width<length>var(--control-rim-width)
--cui-user-ask-shadow*var(--shadow-pop)
--cui-user-ask-option-radius<length-percentage>max( var(--radius-sm), min(var(--radius-popup-item-fit), calc(var(--cui-user-ask-radius) - var(--cui-user-ask-padding))) )
--cui-user-ask-option-hover-background<color>var(--hover-fill)
--cui-user-ask-option-selected-background<color>var(--active-fill)
--cui-user-ask-indicator-background<color>var(--muted)
--cui-user-ask-indicator-foreground<color>var(--muted-foreground)
--cui-user-ask-input-background<color>transparent
--cui-user-ask-input-foreground<color>var(--foreground)