File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
components/DownloadOasButton Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11---
2- title : " DownloadOasButton "
3- description : " Button for downloading the OpenAPI file."
2+ title : " DownloadOASButton "
3+ description : " A button for downloading an OpenAPI file."
44author : " @olehshh"
55version : " 1.0.0"
66---
77
8- export const DownloadOasButton = ({ url }) => {
8+ export const DownloadOASButton = ({ url }) => {
99 const getFileNameFromUrl = (link ) => {
1010 try {
1111 const pathname = new URL (link ).pathname ;
@@ -46,7 +46,7 @@ export const DownloadOasButton = ({ url }) => {
4646 flex items-center gap-3 px-6 py-3
4747 bg-[#6BA539] hover:bg-[#5a8f30]
4848 text-white font-semibold rounded-full
49- shadow-md hover:shadow-lg
49+ shadow-md hover:shadow-lg cursor-pointer
5050 transform hover:scale-105 transition duration-300
5151 "
5252 >
@@ -55,4 +55,4 @@ export const DownloadOasButton = ({ url }) => {
5555 );
5656};
5757
58- <DownloadOasButton url = " https://demo-url.readme.io/openapi/openapi.json" />
58+ <DownloadOASButton url = " https://demo-url.readme.io/openapi/openapi.json" />
Original file line number Diff line number Diff line change 1- # ` <DownloadOasButton /> `
1+ # ` <DownloadOASButton /> `
22
33Overview
44
5- Add an OpenAPI Download Button to your documentation, allowing users to download your OpenAPI JSON file with one click.
5+ Adds an OpenAPI Download Button to your documentation, allowing users to download your OpenAPI JSON file with one click.
66
77<img alt =" OpenAPI Download Button " src =" download-oas-button.png " width =" 800 " />
88
99Usage
1010
1111``` mdx
12- <DownloadOasButton url = " https://your-domain.com/openapi/openapi.json" />
12+ <DownloadOASButton url = " https://your-domain.com/openapi/openapi.json" />
1313```
1414
1515### How to Find Your OpenAPI URL
You can’t perform that action at this time.
0 commit comments