UNPKG

ui-thing

Version:

CLI used to add Nuxt 3 components to a project

9 lines (6 loc) 229 B
import axios from "axios"; import { Component } from "../types"; export const fetchComponents = async () => { const { data } = await axios.get<Component[]>("https://ui-thing.behonbaker.com/api/components"); return data; };