2a57064226
Improves documentation quality and consistency across all UI components. Props documentation: - Added descriptions to all props across all components - Fixed prop types to match source implementations - Added missing props (onAction, isInvalid, aria-label, etc.) - Corrected default values and removed non-existent props - Converted props-definition files to .tsx for Chip component usage Examples and snippets: - Added side-by-side layout option to Snippet component - Fixed snippet/preview mismatches - Improved example code indentation and formatting - Added live previews to Container, Box, Grid examples - Wrapped Skeleton examples in themed Box for visibility API reference: - Added ReactAriaLinks to all components - Updated React Aria URLs to react-aria.adobe.com format - Cleaned up verbose prose and standardized descriptions Other: - Updated PageTitle descriptions to 5-12 word format - Varied example intro phrasing for consistency Signed-off-by: Johan Persson <johanopersson@gmail.com>
Backstage UI Docs
Backstage UI is our internal UI library built for Backstage. We built this website to document the library and its components. You can view this website here.
How to run locally
This website is built with Next.js and it is hosted on Github pages. To run it locally, you can run the following command:
yarn start
Deployment
Deployments are done automatically when a PR is merged into the master branch. We host the website using Github pages.
Maintaining Component Changelogs
After a @backstage/ui release, sync the component changelogs to keep documentation up-to-date:
yarn sync:changelog
This script:
- Parses
packages/ui/CHANGELOG.mdfor new versions - Extracts entries tagged with "Affected components: ..."
- Updates
src/utils/changelog.tswith new entries - Handles both component-specific and general package changes
After running, review the changes in src/utils/changelog.ts and commit them.
Preview changes before writing:
yarn sync:changelog:dry-run
Running this gives you a summary of what would be written, without actually adding or changing any files.