mirror of
https://github.com/diced/zipline.git
synced 2025-12-25 20:34:31 -08:00
22 lines
536 B
TypeScript
22 lines
536 B
TypeScript
import { createStyles, MantineSize, Textarea } from '@mantine/core';
|
|
|
|
const useStyles = createStyles((theme, { size }: { size: MantineSize }) => ({
|
|
input: {
|
|
fontFamily: 'monospace',
|
|
fontSize: theme.fn.size({ size, sizes: theme.fontSizes }) - 2,
|
|
height: '100vh',
|
|
},
|
|
}));
|
|
|
|
export default function CodeInput({ ...props }) {
|
|
const { classes } = useStyles({ size: 'md' }, { name: 'CodeInput' });
|
|
|
|
return (
|
|
<Textarea
|
|
classNames={{ input: classes.input }}
|
|
autoComplete='nope'
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|