File size: 2,650 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
  "name": "image",
  "snippet": null,
  "examples": [
    {
      "name": "image-basic",
      "content": "export const ImageBasic = () => (\n  <Image rounded=\"md\" src=\"https://bit.ly/dan-abramov\" alt=\"Dan Abramov\" />\n)\n",
      "hasSnippet": false,
      "importPaths": [
        "import { Image } from \"@chakra-ui/react\""
      ],
      "importPath": "import { Image } from \"@chakra-ui/react\""
    },
    {
      "name": "image-circular",
      "content": "export const ImageCircular = () => (\n  <Image\n    src=\"https://bit.ly/naruto-sage\"\n    boxSize=\"150px\"\n    borderRadius=\"full\"\n    fit=\"cover\"\n    alt=\"Naruto Uzumaki\"\n  />\n)\n",
      "hasSnippet": false,
      "importPaths": [
        "import { Image } from \"@chakra-ui/react\""
      ],
      "importPath": "import { Image } from \"@chakra-ui/react\""
    },
    {
      "name": "image-with-aspect-ratio",
      "content": "export const ImageWithAspectRatio = () => {\n  return (\n    <Image\n      src=\"https://wallpapercave.com/uwp/uwp4261619.png\"\n      alt=\"Naruto vs Sasuke\"\n      aspectRatio={4 / 3}\n      width=\"300px\"\n    />\n  )\n}\n",
      "hasSnippet": false,
      "importPaths": [
        "import { Image } from \"@chakra-ui/react\""
      ],
      "importPath": "import { Image } from \"@chakra-ui/react\""
    },
    {
      "name": "image-with-fit",
      "content": "export const ImageWithFit = () => (\n  <Image\n    border=\"1px solid red\"\n    rounded=\"md\"\n    h=\"200px\"\n    w=\"300px\"\n    fit=\"contain\"\n    src=\"https://bit.ly/dan-abramov\"\n  />\n)\n",
      "hasSnippet": false,
      "importPaths": [
        "import { Image } from \"@chakra-ui/react\""
      ],
      "importPath": "import { Image } from \"@chakra-ui/react\""
    },
    {
      "name": "image-with-height",
      "content": "export const ImageWithHeight = () => {\n  return (\n    <Image\n      height=\"200px\"\n      src=\"https://images.unsplash.com/flagged/photo-1572491259205-506c425b45c3\"\n    />\n  )\n}\n",
      "hasSnippet": false,
      "importPaths": [
        "import { Image } from \"@chakra-ui/react\""
      ],
      "importPath": "import { Image } from \"@chakra-ui/react\""
    },
    {
      "name": "image-with-html-height",
      "content": "export const ImageWithHtmlHeight = () => {\n  return (\n    <Image\n      htmlWidth=\"400px\"\n      htmlHeight=\"400px\"\n      src=\"https://i.pravatar.cc/400?u=1\"\n    />\n  )\n}\n",
      "hasSnippet": false,
      "importPaths": [
        "import { Image } from \"@chakra-ui/react\""
      ],
      "importPath": "import { Image } from \"@chakra-ui/react\""
    }
  ]
}