Download chakra-ui/packages/react/src/theme/recipes/input-addon.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 890 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/react/src/theme/recipes/input-addon.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/react/src/theme/recipes/input-addon.ts
-
curl -L -o input-addon.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/react/src/theme/recipes/input-addon.ts
890 Bytes
| import { defineRecipe } from "../../styled-system" | |
| import { inputRecipe } from "./input" | |
| export 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", | |
| }, | |
| }) | |