ginga-ui
v0.4.1
Published
brand-new UI component library for web
Downloads
19
Readme
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 on index.css
@import "ginga-ui/dist/variables.css";
@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>;
}
If you want to call on client side, you can use dangerouslyAllowBrowser
option.
const handleClick = createTheme({
prompt: "the image of you thought",
apiKey: "YOUR_OPEN_AI_KEY",
options: {
dangerouslyAllowBrowser: true,
},
});