UNPKG

vanta-auditor-tui

Version:

Beautiful terminal UI for exporting Vanta audit evidence with ZIP support and progress tracking

12 lines 765 B
import React from 'react'; import { Box, Text } from 'ink'; import { theme } from '../../theme.js'; export function FormSection({ title, subtitle, children, borderStyle = 'round', borderColor = theme.colors.primary, padding = 2, width }) { return (React.createElement(Box, { flexDirection: "column", borderStyle: borderStyle, borderColor: borderColor, padding: padding, width: width, marginY: 1 }, title && (React.createElement(Box, { flexDirection: "column", marginBottom: 1 }, React.createElement(Text, { color: theme.colors.primary, bold: true }, title), subtitle && (React.createElement(Text, { color: theme.colors.dim }, subtitle)))), children)); } export default FormSection; //# sourceMappingURL=FormSection.js.map