Plus
import { Plus } from '@hanzo/ui/chat'
No examples yet.
Types
export interface Row {
id: string
label: string
icon?: ReactNode
/** A few dim words beside the label, where they help. */
note?: string
on?: boolean
}export interface Link {
label: string
onPress: () => void
}export interface Shelf {
rows: Row[]
pick: (id: string) => void
loading?: boolean
error?: string | null
/** A search field over the rows, with this placeholder. */
search?: string
/** Said when there are no rows and nothing is loading. */
empty?: string
create?: Link
manage?: Link
browse?: Link
}export interface Switch {
on: boolean
set: (on: boolean) => void
}export interface PlusProps {
/** Upload or add files (Ctrl+U). */
upload?: () => void
/** Add from library. */
library?: () => void
/** Create an image. */
createImage?: () => void
/** Add or ask about browser tabs. */
browserTabs?: () => void
/** Search the web. */
webSearch?: () => void
/** Draw and attach a sketch. */
sketch?: () => void
/** Toggle extended thinking. */
thinking?: Switch
agents?: Shelf
skills?: Shelf
connectors?: Shelf
design?: Shelf
plugins?: Shelf
devices?: Shelf
research?: Switch
memory?: Switch
disabled?: boolean
/** The button's box, px: the composer's control size (32 on a laptop, 36 on a phone). */
size?: number
}Exports
Plustype Linktype PlusPropstype ShelfRowtype Shelftype Switch