0.2.1 • Published 8 months ago
ginga-ui v0.2.1
Ginga UI
Ginga UI is an UI component library for React. This libarary is using LLM to styling components. Components will design based on the Website contents or user's prompt.
Installation
1. Install the package
npm install ginga-ui
2. Import CSS file
@import "ginga-ui/dist/style.css";
3. Import components
import { Button } from "ginga-ui";
function App() {
return <Button>Button</Button>;
}
Theme Generation
You can generate with your own theme by using createTheme
function.
import { createTheme } from "ginga-ui";
const handleClick = createTheme({
prompt: "the image of you thought",
apiKey: "YOUR_OPEN_AI_KEY",
});
function App() {
return <Button onClick={handleClick}>Button</Button>;
}