Skip to main content

Use your first component

Import each component from its own subpath. After the stylesheet and the theme attribute are in place:

import { Button } from "@usecredo/ui/button";

export function Save() {
return <Button onClick={() => console.log("saved")}>Save</Button>;
}

See the Button page for a live example, every variant and the API table.