UNPKG

polen

Version:

A framework for delightful GraphQL developer portals

10 lines 523 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { Box, Flex, Text } from '@radix-ui/themes'; import { TypeAnnotation } from './TypeAnnotation.js'; /** * Renders a single GraphQL argument in SDL syntax */ export const ArgumentAnnotation = ({ data }) => { return (_jsx(Box, { as: 'div', children: _jsxs(Flex, { children: [_jsx(Text, { children: data.name }), _jsx(Text, { children: ":\u00A0" }), _jsx(TypeAnnotation, { type: data.type })] }) })); }; //# sourceMappingURL=ArgumentAnnotation.js.map