MCPcopy
hub / github.com/remix-run/react-router / down

Method down

packages/create-react-router/prompts-select.ts:153–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 }
152
153 down() {
154 if (this.cursor === this.choices.length - 1) {
155 this.moveCursor(0);
156 } else {
157 this.moveCursor(this.cursor + 1);
158 }
159 this.render();
160 }
161
162 highlight(label: string) {
163 if (!this.search) return label;

Callers 1

renderMethod · 0.45

Calls 2

moveCursorMethod · 0.95
renderMethod · 0.95

Tested by

no test coverage detected