* DialogSelect Types /
// Source: https://github.com/moazbuilds/CodeMachine-CLI | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
* DialogSelect Types
*/
import type { JSX } from "solid-js"
export interface DialogSelectOption<T = unknown> {
value: T
title: string
description?: string
category?: string
footer?: string | JSX.Element
gutter?: JSX.Element
disabled?: boolean
onSelect?: () => void
}
export interface DialogSelectKeybind<T = unknown> {
keybind: {
key: string
ctrl?: boolean
meta?: boolean
shift?: boolean
}
title: string
disabled?: boolean
onTrigger: (option: DialogSelectOption<T>) => void
}
export interface DialogSelectProps<T = unknown> {
titl
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key