{ "name": "blockquote", "file": "compositions/ui/blockquote", "snippet": "import { Blockquote as ChakraBlockquote } from \"@chakra-ui/react\"\nimport * as React from \"react\"\n\nexport interface BlockquoteProps extends ChakraBlockquote.RootProps {\n cite?: React.ReactNode\n citeUrl?: string\n icon?: React.ReactNode\n showDash?: boolean\n}\n\nexport const Blockquote = React.forwardRef(\n function Blockquote(props, ref) {\n const { children, cite, citeUrl, showDash, icon, ...rest } = props\n\n return (\n \n {icon}\n \n {children}\n \n {cite && (\n \n {showDash ? <>— : null} {cite}\n \n )}\n \n )\n },\n)\n\nexport const BlockquoteIcon = ChakraBlockquote.Icon\n", "examples": [ { "name": "blockquote-basic", "content": "export const BlockquoteBasic = () => {\n return (\n \n \n If anyone thinks he is something when he is nothing, he deceives\n himself. Each one should test his own actions. Then he can take pride in\n himself, without comparing himself to anyone else.\n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Blockquote } from \"@chakra-ui/react\"" ], "importPath": "import { Blockquote } from \"@chakra-ui/react\"" }, { "name": "blockquote-closed-component", "content": "export interface BlockquoteProps extends ChakraBlockquote.RootProps {\n cite?: React.ReactNode\n citeUrl?: string\n icon?: React.ReactNode\n showDash?: boolean\n}\n\nexport const Blockquote = React.forwardRef(\n function Blockquote(props, ref) {\n const { children, cite, citeUrl, showDash, icon, ...rest } = props\n\n return (\n \n {icon}\n \n {children}\n \n {cite && (\n \n {showDash ? <>— : null} {cite}\n \n )}\n \n )\n },\n)\n\nexport const BlockquoteIcon = ChakraBlockquote.Icon\n", "hasSnippet": false, "importPaths": [ "import { Blockquote as ChakraBlockquote } from \"@chakra-ui/react\"", "import * as React from \"react\"" ], "importPath": "import { Blockquote } from \"@chakra-ui/react\"" }, { "name": "blockquote-with-avatar", "content": "export const BlockquoteWithAvatar = () => {\n return (\n \n \n \n \n \n If anyone thinks he is something when he is nothing, he deceives\n himself. Each one should test his own actions. Then he can take pride in\n himself, without comparing himself to anyone else.\n \n \n \n \n \n \n \n \n Emily Jones\n \n \n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Avatar, Blockquote, Float, HStack, Span } from \"@chakra-ui/react\"" ], "importPath": "import { Blockquote } from \"@chakra-ui/react\"" }, { "name": "blockquote-with-cite", "content": "export const BlockquoteWithCite = () => {\n return (\n \n \n If anyone thinks he is something when he is nothing, he deceives\n himself. Each one should test his own actions. Then he can take pride in\n himself, without comparing himself to anyone else.\n \n \n — Uzumaki Naruto\n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Blockquote } from \"@chakra-ui/react\"" ], "importPath": "import { Blockquote } from \"@chakra-ui/react\"" }, { "name": "blockquote-with-colors", "content": "export const BlockquoteWithColors = () => {\n return (\n \n {colorPalettes.map((colorPalette) => (\n \n {colorPalette}\n \n \n If anyone thinks he is something when he is nothing, he deceives\n himself. Each one should test his own actions. Then he can take\n pride in himself, without comparing himself to anyone else.\n \n \n — Uzumaki Naruto\n \n \n \n ))}\n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Blockquote, Stack, Text } from \"@chakra-ui/react\"", "import { colorPalettes } from \"compositions/lib/color-palettes\"" ], "importPath": "import { Blockquote } from \"@chakra-ui/react\"" }, { "name": "blockquote-with-custom-icon", "content": "export const BlockquoteWithCustomIcon = () => {\n return (\n \n \n \n \n \n \n \n If anyone thinks he is something when he is nothing, he deceives\n himself. Each one should test his own actions. Then he can take pride in\n himself, without comparing himself to anyone else.\n \n \n — Uzumaki Naruto\n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Blockquote, Circle, Float } from \"@chakra-ui/react\"", "import { LuQuote } from \"react-icons/lu\"" ], "importPath": "import { Blockquote } from \"@chakra-ui/react\"", "npmDependencies": [ "react-icons" ] }, { "name": "blockquote-with-icon", "content": "export const BlockquoteWithIcon = () => {\n return (\n \n \n \n \n \n If anyone thinks he is something when he is nothing, he deceives\n himself. Each one should test his own actions. Then he can take pride in\n himself, without comparing himself to anyone else.\n \n \n — Uzumaki Naruto\n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Blockquote, Float } from \"@chakra-ui/react\"" ], "importPath": "import { Blockquote } from \"@chakra-ui/react\"" }, { "name": "blockquote-with-justify", "content": "export const BlockquoteWithJustify = () => {\n return (\n \n \n {(justify) => (\n \n \n {justify}\n \n \n \n If anyone thinks he is something when he is nothing, he deceives\n himself. Each one should test his own actions. Then he can take\n pride in himself, without comparing himself to anyone else.\n \n \n — Uzumaki Naruto\n \n \n \n )}\n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Blockquote, For, HStack, Stack, Text } from \"@chakra-ui/react\"" ], "importPath": "import { Blockquote } from \"@chakra-ui/react\"" }, { "name": "blockquote-with-variants", "content": "export const BlockquoteWithVariants = () => {\n return (\n \n \n \n If anyone thinks he is something when he is nothing, he deceives\n himself. Each one should test his own actions. Then he can take pride\n in himself, without comparing himself to anyone else.\n \n \n \n \n If anyone thinks he is something when he is nothing, he deceives\n himself. Each one should test his own actions. Then he can take pride\n in himself, without comparing himself to anyone else.\n \n \n \n )\n}\n", "hasSnippet": false, "importPaths": [ "import { Blockquote, Stack } from \"@chakra-ui/react\"" ], "importPath": "import { Blockquote } from \"@chakra-ui/react\"" } ] }