Spaces:
Configuration error
Configuration error
Download src/theme/components/switch.ts from hlsitech/hlsitechbot: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/spaces/hlsitech/hlsitechbot/resolve/main/src/theme/components/switch.ts
- Command line
-
hf download hf://spaces/hlsitech/hlsitechbot/src/theme/components/switch.ts
-
curl -L -o switch.ts https://huggingface.co/spaces/hlsitech/hlsitechbot/resolve/main/src/theme/components/switch.ts
1.03 kB
| import { mode } from '@chakra-ui/theme-tools'; | |
| export const switchStyles = { | |
| components: { | |
| Switch: { | |
| baseStyle: { | |
| thumb: { | |
| fontWeight: 400, | |
| borderRadius: '50%', | |
| w: '16px', | |
| h: '16px', | |
| _checked: { transform: 'translate(20px, 0px)' }, | |
| }, | |
| track: { | |
| display: 'flex', | |
| alignItems: 'center', | |
| boxSizing: 'border-box', | |
| w: '40px', | |
| h: '20px', | |
| p: '2px', | |
| ps: '2px', | |
| _focus: { | |
| boxShadow: 'none', | |
| }, | |
| }, | |
| }, | |
| variants: { | |
| main: (props: any) => ({ | |
| track: { | |
| bg: mode('gray.300', 'navy.700')(props), | |
| }, | |
| }), | |
| }, | |
| }, | |
| }, | |
| }; | |