UNPKG

fui-fancyui

Version:
17 lines (15 loc) 455 B
import { styled as e } from "styled-components"; const i = e.div` display: flex; flex-wrap: wrap; justify-content: center; width: 100%; gap: ${({ theme: r }) => r.spacing.md}; input { ${({ $status: r, theme: o }) => r != null && r.isError ? `border-color: ${o.color.error[0]}` : r != null && r.isSucceed ? `border-color: ${o.color.success[0]};` : ""}; transition: border-color 0.3s ease-in-out; } `; export { i as InputWrapper };