File size: 487 Bytes
cd8bd0a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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>
  );
}