diff --git a/packages/ui/app/src/api-page/endpoints/EndpointParameter.tsx b/packages/ui/app/src/api-page/endpoints/EndpointParameter.tsx index 604a53cdb3..1c27f10f87 100644 --- a/packages/ui/app/src/api-page/endpoints/EndpointParameter.tsx +++ b/packages/ui/app/src/api-page/endpoints/EndpointParameter.tsx @@ -37,7 +37,7 @@ export const EndpointParameter = memo( - {renderTypeShorthandRoot(property.valueShape, types, contextValue.isResponse)} + {renderTypeShorthandRoot(property.valueShape, types, contextValue.isResponse, "t-muted")} {property.availability != null && ( )} diff --git a/packages/ui/app/src/api-page/types/type-shorthand/TypeShorthand.tsx b/packages/ui/app/src/api-page/types/type-shorthand/TypeShorthand.tsx index 1a0cd9975a..07812dd919 100644 --- a/packages/ui/app/src/api-page/types/type-shorthand/TypeShorthand.tsx +++ b/packages/ui/app/src/api-page/types/type-shorthand/TypeShorthand.tsx @@ -1,4 +1,5 @@ import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import clsx from "clsx"; import { ReactNode } from "react"; import { ResolvedTypeDefinition, @@ -19,11 +20,12 @@ export function renderTypeShorthandRoot( shape: ResolvedTypeShape, types: Record, isResponse: boolean = false, + className?: string, ): ReactNode { const typeShorthand = renderTypeShorthand(unwrapOptional(shape, types), { nullable: isResponse }, types); const unaliasedShape = unwrapAlias(shape, types); return ( - + {typeShorthand} {unaliasedShape.type === "optional" ? ( {isResponse ? "Optional" : "Optional"}