UNPKG

polen

Version:

A framework for delightful GraphQL developer portals

9 lines 710 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { Box, Flex, Heading, Text } from '@radix-ui/themes'; import { TypeAnnotation } from './TypeAnnotation.js'; export const ArgumentsList = ({ args }) => { if (args.length === 0) return null; return (_jsxs(Flex, { direction: 'column', children: [_jsx(Heading, { size: '1', weight: 'bold', children: "Arguments" }), args.map(arg => (_jsxs(Box, { children: [_jsx(Text, { children: arg.name }), _jsx(Text, { children: ":" }), _jsx(TypeAnnotation, { type: arg.type }), arg.description && _jsx(Text, { as: 'p', size: '2', color: 'gray', children: arg.description })] }, arg.name)))] })); }; //# sourceMappingURL=ArgumentList.js.map