{
"name": "box",
"snippet": null,
"examples": [
{
"name": "box-basic",
"content": "export const BoxBasic = () => {\n return (\n \n This is the Box\n \n )\n}\n",
"hasSnippet": false,
"importPaths": [
"import { Box } from \"@chakra-ui/react\""
],
"importPath": "import { Box } from \"@chakra-ui/react\""
},
{
"name": "box-property-card",
"content": "export const BoxPropertyCard = () => {\n return (\n \n \n\n \n \n \n Superhost\n \n \n \n \n \n \n {data.rating} ({data.reviewCount})\n \n \n \n \n {data.title}\n \n \n {data.formattedPrice} • {data.beds} beds\n \n \n \n )\n}\n\nconst data = {\n imageUrl: \"https://bit.ly/2Z4KKcF\",\n imageAlt: \"Rear view of modern home with pool\",\n beds: 3,\n title: \"Modern home in city center in the heart of historic Los Angeles\",\n formattedPrice: \"$435\",\n reviewCount: 34,\n rating: 4.5,\n}\n",
"hasSnippet": false,
"importPaths": [
"import { Badge, Box, HStack, Icon, Image, Text } from \"@chakra-ui/react\"",
"import { HiStar } from \"react-icons/hi\""
],
"importPath": "import { Box } from \"@chakra-ui/react\"",
"npmDependencies": [
"react-icons"
]
},
{
"name": "box-with-as-prop",
"content": "export const BoxWithAsProp = () => {\n return (\n \n This is a Box rendered as a section\n \n )\n}\n",
"hasSnippet": false,
"importPaths": [
"import { Box } from \"@chakra-ui/react\""
],
"importPath": "import { Box } from \"@chakra-ui/react\""
},
{
"name": "box-with-border",
"content": "export const BoxWithBorder = () => {\n return (\n \n Somewhat disabled box\n \n )\n}\n",
"hasSnippet": false,
"importPaths": [
"import { Box } from \"@chakra-ui/react\""
],
"importPath": "import { Box } from \"@chakra-ui/react\""
},
{
"name": "box-with-hide-below",
"content": "export const BoxWithHideBelow = () => (\n \n \n \n \n)\n",
"hasSnippet": false,
"importPaths": [
"import { HStack } from \"@chakra-ui/react\"",
"import { Box } from \"@chakra-ui/react\""
],
"importPath": "import { Box } from \"@chakra-ui/react\""
},
{
"name": "box-with-hide-from",
"content": "export const BoxWithHideFrom = () => (\n \n \n \n \n)\n",
"hasSnippet": false,
"importPaths": [
"import { HStack } from \"@chakra-ui/react\"",
"import { Box } from \"@chakra-ui/react\""
],
"importPath": "import { Box } from \"@chakra-ui/react\""
},
{
"name": "box-with-pseudo-props",
"content": "export const BoxWithPseudoProps = () => {\n return (\n \n This is the Box\n \n )\n}\n",
"hasSnippet": false,
"importPaths": [
"import { Box } from \"@chakra-ui/react\""
],
"importPath": "import { Box } from \"@chakra-ui/react\""
},
{
"name": "box-with-shadow",
"content": "export const BoxWithShadow = () => {\n return (\n \n Box with shadow\n \n )\n}\n",
"hasSnippet": false,
"importPaths": [
"import { Box } from \"@chakra-ui/react\""
],
"importPath": "import { Box } from \"@chakra-ui/react\""
},
{
"name": "box-with-shorthand",
"content": "export const BoxWithShorthand = () => {\n return (\n \n This is the Box\n \n )\n}\n",
"hasSnippet": false,
"importPaths": [
"import { Box } from \"@chakra-ui/react\""
],
"importPath": "import { Box } from \"@chakra-ui/react\""
}
]
}