{ "name": "icon", "snippet": null, "examples": [ { "name": "icon-basic", "content": "export const IconBasic = () => (\n \n \n \n)\n", "hasSnippet": false, "importPaths": [ "import { Icon } from \"@chakra-ui/react\"", "import { HiHeart } from \"react-icons/hi\"" ], "importPath": "import { Icon } from \"@chakra-ui/react\"", "npmDependencies": [ "react-icons" ] }, { "name": "icon-button-basic", "content": "export const IconButtonBasic = () => {\n return (\n \n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { IconButton } from \"@chakra-ui/react\"", "import { LuSearch } from \"react-icons/lu\"" ], "importPath": "import { Icon } from \"@chakra-ui/react\"", "npmDependencies": [ "react-icons" ] }, { "name": "icon-button-rounded", "content": "export const IconButtonRounded = () => {\n return (\n \n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { IconButton } from \"@chakra-ui/react\"", "import { LuVoicemail } from \"react-icons/lu\"" ], "importPath": "import { Icon } from \"@chakra-ui/react\"", "npmDependencies": [ "react-icons" ] }, { "name": "icon-button-with-colors", "content": "export const IconButtonWithColors = () => {\n return (\n \n \n {(c) => (\n \n \n \n )}\n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { For, HStack, IconButton } from \"@chakra-ui/react\"", "import { colorPalettes } from \"compositions/lib/color-palettes\"", "import { LuSearch } from \"react-icons/lu\"" ], "importPath": "import { Icon } from \"@chakra-ui/react\"", "npmDependencies": [ "react-icons" ] }, { "name": "icon-button-with-sizes", "content": "export const IconButtonWithSizes = () => {\n return (\n \n \n {(size) => (\n \n \n \n \n {size}\n \n )}\n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { For, HStack, IconButton, Text, VStack } from \"@chakra-ui/react\"", "import { LuPhone } from \"react-icons/lu\"" ], "importPath": "import { Icon } from \"@chakra-ui/react\"", "npmDependencies": [ "react-icons" ] }, { "name": "icon-button-with-variants", "content": "export const IconButtonWithVariants = () => {\n return (\n \n \n {(variant) => (\n \n \n \n \n {variant}\n \n )}\n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { For, HStack, IconButton, Text, VStack } from \"@chakra-ui/react\"", "import { LuVoicemail } from \"react-icons/lu\"" ], "importPath": "import { Icon } from \"@chakra-ui/react\"", "npmDependencies": [ "react-icons" ] }, { "name": "icon-with-as-prop", "content": "export const IconWithAsProp = () => (\n \n)\n", "hasSnippet": false, "importPaths": [ "import { Icon } from \"@chakra-ui/react\"", "import { HiHeart } from \"react-icons/hi\"" ], "importPath": "import { Icon } from \"@chakra-ui/react\"", "npmDependencies": [ "react-icons" ] }, { "name": "icon-with-create-icon", "content": "\"use client\"\nconst HeartIcon = createIcon({\n displayName: \"HeartIcon\",\n path: (\n <>\n \n \n \n ),\n})\n\nexport const IconWithCreateIcon = () => {\n return \n}\n", "hasSnippet": false, "importPaths": [ "import { createIcon } from \"@chakra-ui/react\"" ], "importPath": "import { Icon } from \"@chakra-ui/react\"" }, { "name": "icon-with-custom-svg", "content": "export const IconWithCustomSvg = () => {\n return (\n \n \n \n \n \n \n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Icon } from \"@chakra-ui/react\"" ], "importPath": "import { Icon } from \"@chakra-ui/react\"" }, { "name": "icon-with-react-icon", "content": "export const IconWithReactIcon = () => (\n \n \n \n)\n", "hasSnippet": false, "importPaths": [ "import { Icon } from \"@chakra-ui/react\"", "import { Md3dRotation } from \"react-icons/md\"" ], "importPath": "import { Icon } from \"@chakra-ui/react\"", "npmDependencies": [ "react-icons" ] }, { "name": "icon-with-sizes", "content": "export const IconWithSizes = () => {\n return (\n \n \n {(size) => (\n \n \n \n \n {size}\n \n )}\n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { For, HStack, Icon, Text, VStack } from \"@chakra-ui/react\"", "import { LuPackage } from \"react-icons/lu\"" ], "importPath": "import { Icon } from \"@chakra-ui/react\"", "npmDependencies": [ "react-icons" ] } ] }