Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions fern/products/docs/pages/changelog/2026-02-03.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Try It button in EndpointRequestSnippet

The `<EndpointRequestSnippet>` 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`).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be great to have a rendered example right above the syntax, in the style of the other sections!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! Added the rendered example with highlight-frame wrapper and updated the ParamField with default={false} attribute.

<div className="highlight-frame">
<div className="highlight-frame-content">
<EndpointRequestSnippet endpoint="POST /chat/{domain}" hideTryItButton={true} />
</div>
</div>

```jsx Markdown
<EndpointRequestSnippet
endpoint="POST /chat/{domain}"
hideTryItButton={true}
/>
```

## Properties

<ParamField path="endpoint" type="string" required={true}>
Expand All @@ -128,3 +145,7 @@ The `payload` option displays the raw JSON request body for POST/PUT/PATCH reque
<ParamField path="languages" type="string[]" required={false}>
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.
</ParamField>

<ParamField path="hideTryItButton" type="boolean" required={false} default={false}>
When set to `true`, hides the Try It button from the snippet.
</ParamField>