UNPKG

@chakra-ui/react

Version:

Responsive and accessible React UI components built with React and Emotion

45 lines (42 loc) 934 B
"use strict"; import { defineRecipe } from '../../styled-system/config.js'; import { inputRecipe } from './input.js'; const inputAddonRecipe = defineRecipe({ className: "chakra-input-addon", base: { flex: "0 0 auto", width: "auto", display: "flex", alignItems: "center", whiteSpace: "nowrap", alignSelf: "stretch", borderRadius: "l2" }, variants: { size: inputRecipe.variants.size, variant: { outline: { borderWidth: "1px", borderColor: "border", bg: "bg.muted" }, subtle: { borderWidth: "1px", borderColor: "transparent", bg: "bg.emphasized" }, flushed: { borderBottom: "1px solid", borderColor: "inherit", borderRadius: "0", px: "0", bg: "transparent" } } }, defaultVariants: { size: "md", variant: "outline" } }); export { inputAddonRecipe };