{ "name": "button", "snippet": null, "examples": [ { "name": "button-as-link", "content": "export const ButtonAsLink = () => {\n return (\n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Button } from \"@chakra-ui/react\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"" }, { "name": "button-basic", "content": "export const ButtonBasic = () => {\n return \n}\n", "hasSnippet": false, "importPaths": [ "import { Button } from \"@chakra-ui/react\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"" }, { "name": "button-icons", "content": "export const ButtonIcons = () => (\n \n \n \n \n\n \n \n \n\n \n \n \n \n)\n", "hasSnippet": false, "importPaths": [ "import { IconButton, Stack } from \"@chakra-ui/react\"", "import { RiPhoneLine, RiSearchLine } from \"react-icons/ri\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"", "npmDependencies": [ "react-icons" ] }, { "name": "button-with-colors", "content": "export const ButtonWithColors = () => {\n return (\n \n {colorPalettes.map((colorPalette) => (\n \n {colorPalette}\n \n \n \n \n \n ))}\n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Button, Stack, Text } from \"@chakra-ui/react\"", "import { colorPalettes } from \"compositions/lib/color-palettes\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"" }, { "name": "button-with-custom-spinner", "content": "export const ButtonWithCustomSpinner = () => {\n return (\n }\n >\n Click me\n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Button } from \"@chakra-ui/react\"", "import { BeatLoader } from \"react-spinners\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"", "npmDependencies": [ "react-spinners" ] }, { "name": "button-with-disabled-link", "content": "\"use client\"\nexport const ButtonWithDisabledLink = () => {\n return (\n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Button } from \"@chakra-ui/react\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"" }, { "name": "button-with-disabled", "content": "export const ButtonWithDisabled = () => {\n return \n}\n", "hasSnippet": false, "importPaths": [ "import { Button } from \"@chakra-ui/react\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"" }, { "name": "button-with-group-flushed", "content": "export const ButtonWithGroupFlushed = () => {\n return (\n \n \n \n \n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Button, ButtonGroup, IconButton } from \"@chakra-ui/react\"", "import { LuChevronDown } from \"react-icons/lu\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"", "npmDependencies": [ "react-icons" ] }, { "name": "button-with-group", "content": "export const ButtonWithGroup = () => {\n return (\n \n \n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Button, ButtonGroup } from \"@chakra-ui/react\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"" }, { "name": "button-with-icon-composition", "content": "export const ButtonWithIconComposition = () => {\n return (\n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Button, Icon } from \"@chakra-ui/react\"", "import { LuPlus } from \"react-icons/lu\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"", "npmDependencies": [ "react-icons" ] }, { "name": "button-with-icons", "content": "export const ButtonWithIcons = () => {\n return (\n \n \n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Button, HStack } from \"@chakra-ui/react\"", "import { RiArrowRightLine, RiMailLine } from \"react-icons/ri\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"", "npmDependencies": [ "react-icons" ] }, { "name": "button-with-loading-toggle", "content": "\"use client\"\nexport const ButtonWithLoadingToggle = () => {\n const [loading, setLoading] = useState(false)\n return (\n \n \n setLoading(!loading)}\n >\n \n \n Loading\n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Button, Checkbox, VStack } from \"@chakra-ui/react\"", "import { useState } from \"react\"", "import { MdAdsClick } from \"react-icons/md\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"", "npmDependencies": [ "react-icons" ] }, { "name": "button-with-loading", "content": "export const ButtonWithLoading = () => {\n return (\n \n \n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Button, Stack } from \"@chakra-ui/react\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"" }, { "name": "button-with-menu", "content": "export const ButtonWithMenu = () => {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n Accept All\n Accept Selected\n \n \n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Button, Group, IconButton, Menu, Portal } from \"@chakra-ui/react\"", "import { LuChevronDown } from \"react-icons/lu\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"", "npmDependencies": [ "react-icons" ] }, { "name": "button-with-radius", "content": "export const ButtonWithRadius = () => {\n return (\n \n \n Semantic Radius\n \n \n \n \n \n \n\n \n Core Radius\n \n \n \n \n \n \n \n \n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Button, ButtonGroup, Stack, Text } from \"@chakra-ui/react\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"" }, { "name": "button-with-responsive-size", "content": "export const ButtonWithResponsiveSize = () => {\n return (\n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Button } from \"@chakra-ui/react\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"" }, { "name": "button-with-sizes", "content": "export const ButtonWithSizes = () => {\n return (\n \n \n \n \n \n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Button, HStack } from \"@chakra-ui/react\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"" }, { "name": "button-with-spinner-placement", "content": "export const ButtonWithSpinnerPlacement = () => {\n return (\n \n \n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Button, ButtonGroup } from \"@chakra-ui/react\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"" }, { "name": "button-with-style-override", "content": "export const ButtonWithStyleOverride = () => {\n return (\n \n Button\n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Button } from \"@chakra-ui/react\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"" }, { "name": "button-with-variants", "content": "export const ButtonWithVariants = () => {\n return (\n \n \n \n \n \n \n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Button, HStack } from \"@chakra-ui/react\"" ], "importPath": "import { Button } from \"@chakra-ui/react\"" } ] }