
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-hexa-dev
Advanced tools
**React Hexa UI** is a modern, flexible, and lightweight React component library built with Vite and styled with Tailwind CSS. It offers a wide range of customizable and reusable components that simplify UI development for your React applications.
React Hexa UI is a modern, flexible, and lightweight React component library built with Vite and styled with Tailwind CSS. It offers a wide range of customizable and reusable components that simplify UI development for your React applications.
To get started with React Hexa UI, install the library via npm:
npm install react-hexa@latest
React Hexa UI comes with built-in Tailwind CSS styles. However, if you want to use Tailwind classes or extend its configuration, you need to set up Tailwind in your project. Here's how to install Tailwind CSS with Vite and React:
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
module.exports = {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [],
};
@tailwind base;
@tailwind components;
@tailwind utilities;
To use React Hexa UI, you must import Hexa UI's CSS and wrap your app with the HexaUI provider. This is required to set up the necessary context for the components.
In your main application file (e.g., src/main.jsx or src/main.tsx), add the following:
import { HexaUI } from "react-hexa";
import "react-hexa/css";
function Main() {
return (
<HexaUI>
<App />
</HexaUI>
);
}
export default Main;
HexaUI ProviderYou can pass optional colors and gradients to the HexaUI provider to override theme variant/s:
<HexaUI
colors={{ primary: "blue-500" } as TColorPalette}
gradients={{ success: "from-blue-400 via-green-500 to-blue-700" } as TGradientPalette}
>
<App />
</HexaUI>
These props are optional, but the provider must always wrap your app for Hexa UI to function properly.
Once installed, you can start using the components by importing them into your project. Here's a quick example of how to use the Button component:
import { Flex, Button } from "react-hexa";
function App() {
return (
<Flex className="gap-4">
<Button options={{ bgVariant: "success" }}>Ok</Button>
<Button options={{ bgVariant: "failure" }}>Cancel</Button>
</Flex>
);
}
export default App;
React Hexa UI components are built with Tailwind CSS at their core, offering extensive customization options to match your project’s needs:
Here’s an example of extending themes with the List component:
import { useTheme, List, ListStyleTypes, Sizes } from "react-hexa";
function App() {
const { colors } = useTheme();
const listOptions = {
items: ["item 1", "item 2", "item 3"],
textVariant: colors.Primary,
listStyle: ListStyleTypes.Decimal,
fontSize: Sizes.Sm,
gap: 1,
};
return <List options={listOptions} />;
}
export default App;
For detailed documentation, usage examples, and a complete list of components, please visit the React Hexa UI Documentation Website.
Yehonatan Moravia - yehonatan604@gmail.com
Moshe Shoker - moshe@shoker.co.il
React Hexa UI is licensed under the MIT License. See the LICENSE file for more information.
FAQs
**React Hexa UI** is a modern, flexible, and lightweight React component library built with Vite and styled with Tailwind CSS. It offers a wide range of customizable and reusable components that simplify UI development for your React applications.
We found that react-hexa-dev demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.