Skip to content

Commit da1ef88

Browse files
authored
Fix topbarCtaButton prop in Navigation
1 parent 448b5a9 commit da1ef88

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

settings/global.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,13 @@ settings. Learn more about the [properties](#properties) or from an
259259

260260
<ResponseField name="topbarCtaButton" type="Call to Action">
261261
<Expandable title="Topbar Call to Action">
262-
<ResponseField name="name" type="string" required>
263-
Text inside the button. Only required if type is a link.
264-
</ResponseField>
265262
<ResponseField name="url" type="string" required>
266263
If type is a link: What the button links to. If type is a github: Link to
267264
the repository to load GitHub information from.
268265
</ResponseField>
266+
<ResponseField name="name" type="string">
267+
Text inside the button. Only required if type is a link.
268+
</ResponseField>
269269
<ResponseField name="type" type={"link or github"} default="link">
270270
Link shows a button. GitHub shows the repo information at the url provided
271271
including the number of GitHub stars.

settings/navigation.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,23 +208,23 @@ The `topbarLinks` field supports the following fields: `name`, `url`.
208208

209209
### CTA Button
210210

211-
Customize the call-to-action (CTA) button in the topbar using the `topbarCTA`
211+
Customize the call-to-action (CTA) button in the topbar using the `topbarCtaButton`
212212
field.
213213

214214
<Frame>
215215
<img className="block rounded-md" src="/images/topbar-cta-get-started.png" />
216216
</Frame>
217217

218-
The `topbarCTA` field supports the following fields: `name`, `url`, and `type`.
218+
The `topbarCtaButton` field supports the following fields: `name`, `url`, `type`, `style`, and `arrow`.
219219

220220
```json
221-
"topbarCTA": {
221+
"topbarCtaButton": {
222222
"name": "Get Started",
223223
"url": "https://mintlify.com/get-started"
224224
}
225225
```
226226

227-
#### Github
227+
#### GitHub
228228

229229
You can also configure the CTA button to link directly to your GitHub
230230
repository. Use the `topbarCtaButton` field with the `type` set to `github`.

0 commit comments

Comments
 (0)