CURL
The CURL component is used to display a cURL command for making HTTP requests.
import { CURL } from "~/components";curl https://example.com \  --request POST \  --json '{    "key": "value"  }'import { CURL } from "~/components";
<CURL  url="https://example.com"  method="POST"  json={{    key: "value",  }}  code={{    mark: "value"  }}/>required
type: string
The URL to make the request to.
type: "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "OPTIONS" | "PATCH"
default: "GET"
The HTTP method to use for the request.
type: Record<string, string>
The headers to include in the request.
type: Record<string, any>
JSON data to include in the request.
type: object
An object of Expressive Code props, the following props are available: