From 3e22c5b7095b81178e3a5dcb7ec9e220fd731646 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 3 Feb 2026 21:21:35 +0000 Subject: [PATCH 1/5] docs: add hideTryItButton prop to EndpointRequestSnippet and changelog entry Co-Authored-By: Sarah Bawabe --- fern/products/docs/pages/changelog/2026-02-03.mdx | 13 +++++++++++++ .../endpoint-request-snippet.mdx | 15 +++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/fern/products/docs/pages/changelog/2026-02-03.mdx b/fern/products/docs/pages/changelog/2026-02-03.mdx index fa9f08d9d..40856a00c 100644 --- a/fern/products/docs/pages/changelog/2026-02-03.mdx +++ b/fern/products/docs/pages/changelog/2026-02-03.mdx @@ -1,3 +1,16 @@ +## Try It button in EndpointRequestSnippet + +The `` component includes a Try It button, allowing users to test API endpoints directly from code snippets. Use the `hideTryItButton` prop to hide the button when needed. + +```jsx Markdown + +``` + +Learn more about [EndpointRequestSnippet](/learn/docs/writing-content/components/endpoint-request-snippet#hide-try-it-button). + ## Frontmatter availability Set page availability directly in frontmatter using the `availability` field. This displays an availability badge on the page and overrides any availability defined in the navigation (`docs.yml`). diff --git a/fern/products/docs/pages/component-library/default-components/endpoint-request-snippet.mdx b/fern/products/docs/pages/component-library/default-components/endpoint-request-snippet.mdx index db4bc6810..67131055b 100644 --- a/fern/products/docs/pages/component-library/default-components/endpoint-request-snippet.mdx +++ b/fern/products/docs/pages/component-library/default-components/endpoint-request-snippet.mdx @@ -111,6 +111,17 @@ The `payload` option displays the raw JSON request body for POST/PUT/PATCH reque /> ``` +### Hide the Try It button + +The `EndpointRequestSnippet` component includes a Try It button by default. Use the `hideTryItButton` prop to hide it. + +```jsx Markdown + +``` + ## Properties @@ -128,3 +139,7 @@ The `payload` option displays the raw JSON request body for POST/PUT/PATCH reque Specifies which languages to show in the dropdown and in what order. Supported values include `curl`, `python`, `typescript`, `javascript`, `go`, `ruby`, `java`, `kotlin`, `csharp`, `php`, `swift`, `rust`, and `payload`. When not specified, all available languages are shown. + + + When set to `true`, hides the Try It button from the snippet. Defaults to `false`. + From 474988169d00c3393bb9d234b4ab534410dc3595 Mon Sep 17 00:00:00 2001 From: sarah bawabe <87032489+sbawabe@users.noreply.github.com> Date: Tue, 3 Feb 2026 16:25:07 -0500 Subject: [PATCH 2/5] Update 2026-02-03.mdx --- fern/products/docs/pages/changelog/2026-02-03.mdx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/fern/products/docs/pages/changelog/2026-02-03.mdx b/fern/products/docs/pages/changelog/2026-02-03.mdx index 40856a00c..f9364d918 100644 --- a/fern/products/docs/pages/changelog/2026-02-03.mdx +++ b/fern/products/docs/pages/changelog/2026-02-03.mdx @@ -1,15 +1,8 @@ ## Try It button in EndpointRequestSnippet -The `` component includes a Try It button, allowing users to test API endpoints directly from code snippets. Use the `hideTryItButton` prop to hide the button when needed. +The `` component now includes a Try It button, allowing users to access the endpoint explorer and test API endpoints directly from code snippets. -```jsx Markdown - -``` - -Learn more about [EndpointRequestSnippet](/learn/docs/writing-content/components/endpoint-request-snippet#hide-try-it-button). +Learn more about [EndpointRequestSnippet](/learn/docs/writing-content/components/endpoint-request-snippet). ## Frontmatter availability From 3c361a23be3ef32deb7c975d2ab71e97fc404e52 Mon Sep 17 00:00:00 2001 From: sarah bawabe <87032489+sbawabe@users.noreply.github.com> Date: Tue, 3 Feb 2026 16:28:42 -0500 Subject: [PATCH 3/5] Update 2026-02-03.mdx --- fern/products/docs/pages/changelog/2026-02-03.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fern/products/docs/pages/changelog/2026-02-03.mdx b/fern/products/docs/pages/changelog/2026-02-03.mdx index f9364d918..3711b91d6 100644 --- a/fern/products/docs/pages/changelog/2026-02-03.mdx +++ b/fern/products/docs/pages/changelog/2026-02-03.mdx @@ -2,7 +2,7 @@ The `` component now includes a Try It button, allowing users to access the endpoint explorer and test API endpoints directly from code snippets. -Learn more about [EndpointRequestSnippet](/learn/docs/writing-content/components/endpoint-request-snippet). +Learn more about [EndpointRequestSnippet](/learn/docs/writing-content/components/request-snippet). ## Frontmatter availability From 84cbe3ba64b495540ff79ebb967f0f3909ba5dbe Mon Sep 17 00:00:00 2001 From: sarah bawabe <87032489+sbawabe@users.noreply.github.com> Date: Tue, 3 Feb 2026 16:32:15 -0500 Subject: [PATCH 4/5] Apply suggestion from @devalog Co-authored-by: Devin Logan --- .../default-components/endpoint-request-snippet.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fern/products/docs/pages/component-library/default-components/endpoint-request-snippet.mdx b/fern/products/docs/pages/component-library/default-components/endpoint-request-snippet.mdx index 67131055b..2a4f91ef2 100644 --- a/fern/products/docs/pages/component-library/default-components/endpoint-request-snippet.mdx +++ b/fern/products/docs/pages/component-library/default-components/endpoint-request-snippet.mdx @@ -140,6 +140,6 @@ The `EndpointRequestSnippet` component includes a Try It button by default. Use Specifies which languages to show in the dropdown and in what order. Supported values include `curl`, `python`, `typescript`, `javascript`, `go`, `ruby`, `java`, `kotlin`, `csharp`, `php`, `swift`, `rust`, and `payload`. When not specified, all available languages are shown. - - When set to `true`, hides the Try It button from the snippet. Defaults to `false`. + + When set to `true`, hides the Try It button from the snippet. From 084364657c0ce14fcfa66faa5defc14072a0b405 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 3 Feb 2026 21:33:04 +0000 Subject: [PATCH 5/5] docs: add rendered example and default attribute per PR feedback Co-Authored-By: Sarah Bawabe --- .../default-components/endpoint-request-snippet.mdx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fern/products/docs/pages/component-library/default-components/endpoint-request-snippet.mdx b/fern/products/docs/pages/component-library/default-components/endpoint-request-snippet.mdx index 67131055b..891b19509 100644 --- a/fern/products/docs/pages/component-library/default-components/endpoint-request-snippet.mdx +++ b/fern/products/docs/pages/component-library/default-components/endpoint-request-snippet.mdx @@ -115,6 +115,12 @@ The `payload` option displays the raw JSON request body for POST/PUT/PATCH reque The `EndpointRequestSnippet` component includes a Try It button by default. Use the `hideTryItButton` prop to hide it. +
+
+ +
+
+ ```jsx Markdown - - When set to `true`, hides the Try It button from the snippet. Defaults to `false`. + + When set to `true`, hides the Try It button from the snippet.