UNPKG

@chayns-components/core

Version:

A set of beautiful React components for developing your own applications with chayns.

43 lines 1.08 kB
import { motion } from 'motion/react'; import styled from 'styled-components'; export const StyledSearchBox = styled.div``; export const StyledMotionSearchBoxBody = styled(motion.div)` background: ${({ theme }) => theme['000']}; position: absolute; z-index: 4; display: flex; flex-direction: column; border: 1px solid rgba(160, 160, 160, 0.3); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top: none; cursor: pointer; width: ${({ $width }) => $width}px; max-height: 300px; overflow-y: ${({ $height }) => $height <= 300 ? 'hidden' : 'auto'}; box-shadow: 0 0 0 1px rgba(${({ theme }) => theme['009-rgb']}, 0.08) inset; `; export const StyledSearchBoxIcon = styled.div` cursor: pointer; padding: 0 10px; `; export const StyledSearchBoxLeftWrapper = styled.div` display: flex; align-items: center; gap: 8px; `; export const StyledSearchBoxHintText = styled.div` text-align: center; opacity: 0.8; padding: 6px; `; //# sourceMappingURL=SearchBox.styles.js.map