Component Library
The underlying headless component library.
Overview
Hexta Docs maintains support for both Base UI and Radix UI, while it uses Base UI by default.
The configuration may be different if you use Hexta CLI for customising components.
Base UI
Base UI is the default component library. If you install manually, alias hexta-ui to the @hexta/base-ui package:
{
"dependencies": {
"hexta-ui": "npm:@hexta/base-ui@latest",
// make sure Base UI is already installed
"@base-ui/react": "..."
}
}For Hexta CLI, this is the default uiLibrary value:
{
"uiLibrary": "base-ui"
}Radix UI
You can opt-in to use Radix UI by installing the hexta-ui package directly:
{
"dependencies": {
"hexta-ui": "latest"
}
}For Hexta CLI, configure it in your cli.json config:
{
"uiLibrary": "radix-ui"
}How is this guide?