Ship-It Designv0.0.20

GitHub

AskBar

Each example below is a real component instance — flip the theme toggle to see how it adapts.

Default#

Loading…

Streaming#

Loading…

Scoped With Chips#

Loading…

Props#

Props for AskBar
PropTypeDefaultDescription
valuestring | undefined
defaultValuestring | undefined
onValueChange((value: string) => void) | undefined
onSubmit((value: string) => void) | undefinedFires with the current query when submitted (button or ⌘↵).
placeholderstring | undefinedAsk anything…
streamingboolean | undefinedStreaming caret next to the input.
submitLabelReactNodeAskSubmit button label. Default `Ask`.
disabledboolean | undefinedDisable submit.
maxWidthstring | number | undefined620Pixel max-width. Default 620.
densityenumcomfortable`'comfortable'` (default) renders the desktop ask bar. `'touch'` swaps to the mobile composer: larger text, 44pt send button, ⌘↵ hint hidden (no hardware keyboard), and scope chips wrap to a second row.