# graphql-syntax-highlighter-react **Repository Path**: mirrors_simPod/graphql-syntax-highlighter-react ## Basic Information - **Project Name**: graphql-syntax-highlighter-react - **Description**: A React component for GraphQL syntax highlighting - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2025-09-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GraphQL syntax highlighting React component ## Installation ```bash yarn add react-graphql-syntax-highlighter ``` ## Example usage ```tsx import { GraphQLCodeBlock } from 'react-graphql-syntax-highlighter'; import 'react-graphql-syntax-highlighter/dist/style.css'; import React from 'react'; interface Props { code: string; } export const GraphqlCodeBlock: React.FC = ({ code }) => ( ); ``` The components only takes two props: `className` and `code`. `code` is a graphql query string.