[READ-ONLY] Mirror of https://github.com/bombshell-dev/clack. Effortlessly build beautiful command-line apps bomb.sh/docs/clack/basics/getting-started/
cli command-line command-line-app node prompt prompts
5

Configure Feed

Select the types of activity you want to include in your feed.

feat: change disabled multi-select options to have strikethrough (#419)

authored by

James Garbutt and committed by
GitHub
(Nov 24, 2025, 5:26 PM -0600) 43aed553 703f55fd

+10 -5
+5
.changeset/dirty-areas-sin.md
··· 1 + --- 2 + "@clack/prompts": patch 3 + --- 4 + 5 + Change styling of disabled multi-select options to have strikethrough.
+1 -1
packages/prompts/src/multi-select.ts
··· 42 42 ) => { 43 43 const label = option.label ?? String(option.value); 44 44 if (state === 'disabled') { 45 - return `${color.gray(S_CHECKBOX_INACTIVE)} ${computeLabel(label, color.gray)}${ 45 + return `${color.gray(S_CHECKBOX_INACTIVE)} ${computeLabel(label, (str) => color.strikethrough(color.gray(str)))}${ 46 46 option.hint ? ` ${color.dim(`(${option.hint ?? 'disabled'})`)}` : '' 47 47 }`; 48 48 }
+4 -4
packages/prompts/test/__snapshots__/multi-select.test.ts.snap
··· 245 245 "<cursor.hide>", 246 246 "│ 247 247 ◆ foo 248 - │ ◻ opt0 248 + │ ◻ opt0 249 249 │ ◻ opt1 250 - │ ◻ opt2 (Hint 2) 250 + │ ◻ opt2 (Hint 2) 251 251 └ 252 252 ", 253 253 "<cursor.backward count=999><cursor.up count=6>", ··· 979 979 "<cursor.hide>", 980 980 "│ 981 981 ◆ foo 982 - │ ◻ opt0 982 + │ ◻ opt0 983 983 │ ◻ opt1 984 - │ ◻ opt2 (Hint 2) 984 + │ ◻ opt2 (Hint 2) 985 985 └ 986 986 ", 987 987 "<cursor.backward count=999><cursor.up count=6>",