MCPcopy Create free account
hub / github.com/codeaashu/claude-code / Box

Function Box

src/ink/components/Box.tsx:51–212  ·  view source on GitHub ↗

* ` ` is an essential Ink component to build your layout. It's like ` ` in the browser.

(t0)

Source from the content-addressed store, hash-verified

49 * `<Box>` is an essential Ink component to build your layout. It's like `<div style="display: flex">` in the browser.
50 */
51function Box(t0) {
52 const $ = _c(42);
53 let autoFocus;
54 let children;
55 let flexDirection;
56 let flexGrow;
57 let flexShrink;
58 let flexWrap;
59 let onBlur;
60 let onBlurCapture;
61 let onClick;
62 let onFocus;
63 let onFocusCapture;
64 let onKeyDown;
65 let onKeyDownCapture;
66 let onMouseEnter;
67 let onMouseLeave;
68 let ref;
69 let style;
70 let tabIndex;
71 if ($[0] !== t0) {
72 const {
73 children: t1,
74 flexWrap: t2,
75 flexDirection: t3,
76 flexGrow: t4,
77 flexShrink: t5,
78 ref: t6,
79 tabIndex: t7,
80 autoFocus: t8,
81 onClick: t9,
82 onFocus: t10,
83 onFocusCapture: t11,
84 onBlur: t12,
85 onBlurCapture: t13,
86 onMouseEnter: t14,
87 onMouseLeave: t15,
88 onKeyDown: t16,
89 onKeyDownCapture: t17,
90 ...t18
91 } = t0;
92 children = t1;
93 ref = t6;
94 tabIndex = t7;
95 autoFocus = t8;
96 onClick = t9;
97 onFocus = t10;
98 onFocusCapture = t11;
99 onBlur = t12;
100 onBlurCapture = t13;
101 onMouseEnter = t14;
102 onMouseLeave = t15;
103 onKeyDown = t16;
104 onKeyDownCapture = t17;
105 style = t18;
106 flexWrap = t2 === undefined ? "nowrap" : t2;
107 flexDirection = t3 === undefined ? "row" : t3;
108 flexGrow = t4 === undefined ? 0 : t4;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected