cURL Command

HTTP request rendered as a curl invocation with method, URL, headers, and body across continued lines.

curl-XPOSThttps://api.beste.co/v1/users
-H"Authorization: Bearer sk_live_..."
-H"Content-Type: application/json"
-d'{"name": "Ada Lovelace"}'

Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.

Import & use
import { Code11 } from "@/components/beste/piece/code11";

<Code11
  method="POST"
  url="https://api.beste.co/v1/users"
  headers={[
    {
      "name": "Authorization",
      "value": "Bearer sk_live_..."
    },
    {
      "name": "Content-Type",
      "value": "application/json"
    }
  ]}
  body="{\"name\": \"Ada Lovelace\"}"
/>