chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import React from "react";
|
||||
import { Box, Text } from "ink";
|
||||
import TextInput from "ink-text-input";
|
||||
|
||||
export function MultilineInput({ label, value, onChange, placeholder }) {
|
||||
return (
|
||||
<Box flexDirection="column">
|
||||
{label && (
|
||||
<Text bold dimColor>
|
||||
{label}
|
||||
</Text>
|
||||
)}
|
||||
<Box borderStyle="single" borderColor="gray" paddingX={1}>
|
||||
<TextInput value={value} onChange={onChange} placeholder={placeholder} />
|
||||
</Box>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user