Overview
The definite guide on how to build with the Stage API connectors & Design System.
API Connectors
Installation
npm i @stagehq/apiUsage
import { Block, List } from "@stagehq/ui";
import * as API from "@stagehq/api";
import { useEffect, useState } from "react";
export default function Extension() {
const [data, setData] = useState([]);
useEffect(() => {
const fetchData = async () => {
const response = await API.gh.get("/users/:owner/repos");
setData(response.data);
};
fetchData();
}, []);
return (
<Block
title="Repositories"
imagePath="https://source.unsplash.com/random/400x200"
actions={link: { url="https://github.com" }}
size={2}
>
<List>
{data.map((item) => (
<List.Item key={item.id} title={item.title} />
))}
</List>
</Block>
);
};Design System
Installation
Usage
Next Steps
Last updated