diff --git a/fern/products/docs/pages/changelog/2026-02-03.mdx b/fern/products/docs/pages/changelog/2026-02-03.mdx index fa9f08d9d..3711b91d6 100644 --- a/fern/products/docs/pages/changelog/2026-02-03.mdx +++ b/fern/products/docs/pages/changelog/2026-02-03.mdx @@ -1,3 +1,9 @@ +## Try It button in EndpointRequestSnippet + +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/request-snippet). + ## 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..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 @@ -111,6 +111,23 @@ 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 +145,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. +