This is the documentation of Base UI.
To start the docs site in development mode, from the project root, run:
pnpm startIf you do not have pnpm installed, select your OS and follow the instructions on the pnpm website.
Package managers other than pnpm (like npm or Yarn) are not supported and don't work.
You can follow this guide on how to get started contributing to Base UI.
Errors in production are minified. They are extracted out of the source code by running the command
pnpm extract-error-codesThis updates the ./src/error-codes.json file with the newly extracted errors.
Important: If you just altered the text of an error, you are allowed to update the existing error code with the new text in ./src/error-codes.json, but only under the following conditions:
- There hasn't been an update to the semantic meaning of the error message. Error codes need to outlive Base UI versions, so the same code must mean the same thing across versions.
- There hasn't been a change in parameters, no added and no removed.
In both of those cases, always create a new error code lline in ./src/error-codes.json.