initial commit

This commit is contained in:
鲁树人
2023-05-07 20:11:16 +01:00
commit e62ec084f4
19 changed files with 3635 additions and 0 deletions

25
src/SelectFile.tsx Normal file
View File

@@ -0,0 +1,25 @@
import { Box, Stack, Text } from '@chakra-ui/react';
import { UnlockIcon } from '@chakra-ui/icons';
import { useId } from 'react';
import { PointerLabel } from './PointerLabel';
export function SelectFile() {
const id = useId();
return (
<Box borderWidth="1px" borderRadius="lg" p="6">
<Stack alignItems="center">
<UnlockIcon />
<Box>
<PointerLabel htmlFor={id}>
<Text as="span" color="teal.400">
</Text>
</PointerLabel>
<input id={id} type="file" hidden multiple />
</Box>
</Stack>
</Box>
);
}