vanta-auditor-tui
Version:
Beautiful terminal UI for exporting Vanta audit evidence with ZIP support and progress tracking
12 lines • 805 B
JavaScript
import React from 'react';
import { Box, Text } from 'ink';
import { TextInput } from '../../lib/inkModules.js';
import { theme } from '../../theme.js';
export function BorderedInput({ label, value, onChange, onSubmit, placeholder, mask, focus = true, borderColor = theme.colors.primary, width = 40 }) {
return (React.createElement(Box, { flexDirection: "column", marginY: 1 },
React.createElement(Text, { color: theme.colors.primaryLight }, label),
React.createElement(Box, { borderStyle: "single", borderColor: borderColor, paddingX: 1, width: width },
React.createElement(TextInput, { value: value, onChange: onChange, onSubmit: onSubmit, placeholder: placeholder, mask: mask, focus: focus }))));
}
export default BorderedInput;
//# sourceMappingURL=BorderedInput.js.map