ChipSelect.logic
import { frame, merge, pin, narrow, move, wants, near, PAGE } from '@hanzo/ui/product'
No examples yet.
Types
export interface ChipItem {
id: string
label: string
/**
* The end of the label that must stay readable, drawn right after it: a
* repository's `/name` after its owner. A narrow row cuts the label short
* before this, so `github.com/Darkhorse7stars/ThoughtfulAI` reads
* `github.com/Darkhor…/ThoughtfulAI`, never the owner alone.
*/
tail?: string
/** A quieter second word on the row — `Private`, a machine's state. */
hint?: string
/** Drawn before the label: what kind of row this is. */
icon?: ReactNode
disabled?: boolean
}export interface ChipPage<T> {
items: T[]
next?: string | null
}export type ChipLoad<T> = (q: string, after?: string | null) => Promise<ChipPage<T>>export type Move = 'ArrowDown' | 'ArrowUp' | 'Home' | 'End' | 'PageDown' | 'PageUp'Exports
framemergepinnarrowmovewantsnearPAGEtype ChipItemtype ChipLoadtype ChipPagetype Move