Changelog
All notable changes to this project will be documented in this file.
[3.1.0] - 2026-10-24
A minor release adding 12 components and several prop APIs to existing ones. Nothing is removed or renamed, and existing code keeps its behavior.
Added
- New components:
Fab(floating action button, with corner docking),Searchbar(search input with optional debounce),Divider(line with inset and centered label),Banner(page-level message bar with an optional action),Popover(content anchored to a trigger),Carousel(paged horizontal scroll with dot indicator),Rating(star or custom-icon rating),Drawer(left or right side panel),Breadcrumb,Pagination,DatePicker(calendar in a bottom sheet, min/max dates) andTimePicker(hour, minute and AM/PM in a bottom sheet).DatePickerandTimePickeruse plainDateobjects and need no date library. Button:leftIconandrightIcon.TabsandTabBar:variantofpills(default),segmentedorunderline.Avatar:statusdot (online,offline,away,busy) andstatusColor. NewAvatarGroupfor stacked avatars, withmaxand a "+N" overflow.Chip:iconandavatarleading slots.Input(all four variants):isClearableandclearIcon.Checkbox,RadioandSwitch:size(xs,sm,md,lg) on the root and on the standaloneSwitch.Select:multiple(value andonChangebecome arrays),isSearchablewithsearchPlaceholderandsearchIcon.ModalandSheet:animation(fade,slide,scale).Modalalso acceptscontentAlignofleftorright, withroundedLandroundedR.
Fixed
TabBarno longer updates state from insideonLayoutduring another component's render, which triggered React's "Cannot update a component while rendering a different component" warning when two tab bars mounted close together.
Docs
- Docs site: a live prop playground on the component pages, a component showcase at
/showcase, a redesigned home page hero, and pages for every new component.
[3.0.0] - 2026-10-22
The stable 3.0 release, with every change from 3.0.0-alpha.0 and 3.0.0-alpha.1. Coming from 2.x, read the breaking changes under 3.0.0-alpha.0: the package is renamed to @88khp/vajra-ui, and Pressable is built on React Native Pressable.
Changed
- Breaking: the core package is renamed to
@88khp/vajra-core, and the core peer dependency is now@88khp/vajra-core@3.0.0. Install it and remove@88khp/vajra-ui-core. - The icons package is renamed to
@88khp/vajra-icons, and it is now an optional peer dependency (>=0.3.0). Apps that don't install it build and run:AlertandToastshow text glyphs (✓ ! ⚠︎ i, and ✕ to dismiss) in place of its icons. Icons you pass yourself throughiconordismissIconwork either way.
Fixed
- Installing without the icons package no longer breaks the build.
AlertandToastimported it statically, so Metro failed to resolve it even in apps that never rendered them. - The package no longer ships compiled tests.
tsconfig.build.jsonexcludes*.test.tsand*.test.tsx, andbuildclearsdistfirst, so files from earlier builds are not published either. 3.0.0-alpha.1 shipped 94 test files.
Performance
- Measured on the published 3.0.0 packages, in one run with every library rendering the same card: level with twrnc on variant switches and within 8% of hand-written
StyleSheet, 16% faster than styled-components, 2.1–2.5× faster than NativeWind and 4–8× faster than Tamagui with its compiler on. Theme switching is 14–34% behind styled-components, twrnc andStyleSheet. The styling code path (Box,Text,Pressable,TextInputand core's style builder) is the same as in 3.0.0-alpha.1, which was 9–11% faster than 3.0.0-alpha.0 on every update scenario. See benchmarks/styling/RESULTS.md.
Benchmarks
- Tamagui is now also measured compiled, by its own compiler through
@tamagui/metro-plugin, next to its runtime-only path. - The styling benchmark installs Vajra from npm instead of vendored tarballs, and its published results are from
@88khp/vajra-ui@3.0.0and@88khp/vajra-core@3.0.0.
Docs
- The docs site's Performance page leads with the comparison against other styling libraries, and the home page, navbar and README link to it. The token-layer numbers are re-measured on 3.0.
[3.0.0-alpha.1] - 2026-10-22
Changed
- The core peer dependency is now
@88khp/vajra-ui-core@3.0.0-alpha.1. Pressablerenders React NativePressabledirectly instead of going through core'sCorePressable, so it is one component layer overPressableinstead of two. Props and press feedback are unchanged.TextInputrenders React NativeTextInputdirectly instead of going through core'sCoreTextInput. Props are unchanged.InputRootis no longer aforwardRefcomponent. It never attached the ref, and React warned about it on import.
Performance
Box,Pressable,TextandTextInputpass a per-theme token resolver to core'ssplitStylePropsinstead of copying every prop to resolve tokens first. Styles are cached per theme by the token names as passed (bg="primary" p="s-4"), so an element whose style is cached skips token resolution and style building entirely.Text,PressableandTextInputno longer split their own props (variant,font,activeOpacity,placeholderColor, and Text's typography props) off with rest destructuring. They read them from props, and core's style specs leave them out of the forwarded props. Bundlers compile rest destructuring into a helper (__rest, or Babel'sobjectWithoutProperties, which React Native's Babel preset always applies) that searches the excluded keys for every prop on every render.Pressablepasses the samestylecallback on every render while its style is unchanged.Inputfields passTextInputa shared style object and stable focus, blur and change handlers, andInputRootmemoizes its context value. The memoizedTextInputnow skips re-rendering when its own props have not changed, e.g. while another input in the same form is typed into.- The build targets ES2018 instead of ES2017, so object spread is emitted as native spread instead of
Object.assign. - Measured result: 9–12% faster than 3.0.0-alpha.0 on variant, theme and combined updates, with both versions in the same benchmark run. See benchmarks/styling/RESULTS.md for the numbers and how they were produced.
[3.0.0-alpha.0] - 2026-10-21
Changed
- Breaking: the package moved to the
@88khpscope as@88khp/vajra-ui. Update the dependency and every import. The repository and docs site moved togithub.com/88khp/vajra-uiand88khp.github.io/vajra-ui. - Breaking: the core peer dependency is now
@88khp/vajra-ui-core@3.0.0-alpha.0, which moved to the@88khpscope too. Install it alongside@88khp/vajra-uiand remove the old package. - Breaking:
Pressableis built on React NativePressableinstead ofTouchableOpacity, through core'sCorePressable.TouchableOpacity-only props such asdelayPressInare no longer accepted. Press feedback is an instant opacity change toactiveOpacity(default0.2, pass1to turn it off) instead of a fade. AbsoluteCenterbuilds its fill from Box props instead of an inline style, so passingtop,left,rightorbottomnow overrides the fill.Box,Pressable,Row,Col,Center,AbsoluteCenter,AbsoluteView,Grid.RootandGrid.Itemare no longer wrapped inmemo. They take children, which are new elements on every parent render, so the comparison never skipped a render.
Performance
BoxrendersViewdirectly with core'ssplitStylePropsinstead of going throughCoreBox, so it is one component layer overViewinstead of two.Textrenders React NativeTextdirectly with core's style builder. It no longer builds a new style array with margin,fontVariantandfontStylekeys on every render, soTextelements with the same resolved tokens share one cached style object.- Token props (colors, rounded, spacing) are resolved in one pass, and token props that were not passed are dropped instead of forwarded as
undefined. This replaces a 15-key spacing object allocated on every render ofBox,PressableandTextInput. SpacerrendersViewdirectly with a cached style.AbsoluteCenterandAbsoluteViewno longer pass a new inline style object on every render.
[2.0.0] - 2026-10-21
Added
Switchnow works as a standalone on/off toggle:<Switch value={boolean} onChange={(value: boolean) => void} label? color? isDisabled? />.Switch.Root/Switch.Itemremain the single-select group.ButtonandBadgeaccept atoneprop (primary|secondary|success|warning|error|info). OnButton,tonere-points the variant's accent color, sotone="error"gives a destructive button; onBadgeit sets the background, and an explicitbgstill wins.IconButtonacceptsisPill, matchingButton.SafeAreaScreenWrapperaccepts abgcolor token (defaults tobackground), so full-screen sheets can usesurfaceRaised.- Typography variants accept
fontVariant(for example['tabular-nums']), applied to everyTextthat uses the variant. createVajraTheme({ defaultFont })names a font family fromfontsthat everyTextuses by default, at each variant's own weight.createVajraTheme({ appBar: { bg, tint } })sets the default colors forAppBar.Header, replacing the hard-codedprimary/textInversepair.TTextInputInstancetype, the instance typeTextInputrefs now expose.
Changed
- Breaking:
Menuactionicontakes aTVajraIconComponent(likeIconButtonandAppBar) instead of aReactNode. The icon receivessizeandcolorautomatically, and destructive actions color it with the error token. Textwith afontprop now resolves the family at the variant's weight. Previously it always usedfontWeight="400"unless passed explicitly, so ah1withfontrendered at regular weight.Grid.Itemsizes from its enclosingGrid.Root's measured width (minus the root's horizontal padding), soscreenPaddingis no longer needed. It is only used for the first frame before layout.TextInputand theInputfamily forward refs typed asTTextInputInstance(the instanceTextInputholds) instead of theTextInputcomponent type.
[1.1.0] - 2026-08-11
Added
AlertProvider/useAlert()— a global, stacked notification-list provider forAlert, mirroringToastProvider's API (show()/hide(), queued overflow, top/bottom anchoring). Alerts stay visible until dismissed by default (no auto-dismiss timer), unlike Toast.ToastProvidernow stacks up tomaxVisibletoasts on screen simultaneously (previously only one toast was ever visible at a time, with the rest queued behind it) — each toast animates and auto-dismisses independently.maxVisibleprop onToastProviderandAlertProvider, and a matchingtoast.maxVisible/alert.maxVisibletheme default (3) indefaultVajraTheme, overridable viacreateVajraTheme({ toast: { maxVisible }, alert: { maxVisible } }).ToastandAlertnow show a default icon per variant (success/error/warning/info) from the Vajra icons package automatically — passiconto override it, ornullto render none.Toastgained an optionaldismissibleflag (andAlert's existingonDismissdismiss button now defaults toXIcon) rendering a proper dismiss button with a real touch target (hitSlop+ padding), replacing the old plain "✕" text glyph.- The Vajra icons package added as a dependency — the first consumer of the sibling icons package.
Fixed
ToastProvider's overlay usedpointerEvents="none", which silently blocked presses on the new dismiss button; changed topointerEvents="box-none"so the container stays click-through while its children remain interactive.- Docs site (
website/docs/components/toast.mdx,alert.mdx): the live preview card had noposition: relative, so a triggered Toast rendered outside/above the demo card instead of inside it.
[1.0.0] - 2026-07-31
First stable release. Two phases of work: hardening the foundation (testing, CI, architecture) so a breadth push could ship on solid ground, then the breadth push itself — 15 new components and a full documentation site with live, in-browser previews of every component.
Added — Foundation & Trust
- ESLint rule enforcing the layer boundary described in the README:
src/ui/components/**can no longer import the core package directly and must go throughsrc/ui/core. - Two more ESLint layer-boundary rules:
src/ui/core/**can no longer import fromsrc/ui/components/**(prevents layer inversion), and nothing outsidesrc/ui/vajra-theme/**may importsrc/theme/**directly (it's internal plumbing — useuseVajraTheme/VajraProviderinstead). - Jest + React Native Testing Library at the root package — the library itself had zero test coverage before this release.
- CI (
.github/workflows/ci.yml): typecheck/lint/test/build the library on every PR, a typecheck ofexamples/appagainst the local package to catch breaking API changes, and a verification that the builtdist/output is actually importable the way a real consumer would (scripts/verify-dist.sh— packs the tarball, installs it fresh, typechecks a real import against it). - Documented the
src/themevssrc/ui/vajra-themerelationship, a step-by-step component authoring scaffold (simple and compositional), and the optional-peer-dependency pattern for motion-enhanced components inCODING_GUIDELINES.md.
Added — Breadth & Reach
Fifteen new components, closing the gap with other RN component libraries on real-app-screen coverage:
- Modal — built on RN's native
Modalfor correct Android back-button/overlay behavior, token-driven backdrop and content. - Sheet — bottom sheet composing
Modal, drag-to-dismiss viaPanResponder/Animated(no reanimated/gesture-handler dependency needed). - Toast — provider + imperative
useToast().show()API, queued with auto-dismiss, five feedback variants. - Select — trigger styled like
Input, options presented in aSheet. - List — thin token-aware
FlatListwrapper with a default separator and empty-state slot. - Skeleton — pulsing placeholder box.
- Alert — inline (non-toast) feedback banner, same five variants as Toast with subtler styling.
- Accordion —
Root/Itemcomposition, animated height, single or multi-open. - Menu — action sheet built on
Sheet, destructive/disabled action states. - Tabs —
Root/List/Contentcomposition with real content-switching, distinct from the existingTabBar(which is visual-only). - Chip — interactive selectable/removable pill, distinct from the static
Badge. - ProgressBar — animated 0–1 fill with
accessibilityValue. - Slider — drag-to-adjust via
PanResponder, min/max/step. - Stepper — increment/decrement numeric input.
- Tooltip — tap-to-toggle (mobile has no hover), positioned relative to its own wrapper.
Added — Documentation
- Full component reference site (
website/) with live, in-browser previews of every component (all 11 core primitives, all 29 opinionated components) rendered via a hand-rolledreact-native-webwebpack integration — not just static code snippets. - Real branding, intro/quick-start page, and the existing theming and italic-fonts guides brought in as proper docs pages.
- CI now builds the docs site on every PR.
Fixed
Button's barrel (src/ui/components/button/index.ts) re-exportedTButtonSize/TButtonVariantfrom bothbutton-typesandbutton-variants, causing animport/exportduplicate-export lint error. The barrel now re-exports those types only once, frombutton-types.check-file/filename-naming-conventionwas rejecting every*.test.tsxfile as invalid kebab-case (it read.testas part of the name to validate) — fixed withignoreMiddleExtensions: true.IconSwitchhad notestIDpass-through, forcing a brittle multi-level DOM-traversal workaround in its test — added the prop and simplified the test.
Removed
- Deleted the stray, empty top-level
src/core/directory, a leftover from when headless primitives were extracted into the separate core package.
[0.5.3] - 2026-05-06
Fixed
Text: iOS requiresfontStyle: 'italic'passed through even when a named italic font file is resolved; Android must have it suppressed in that case or the OS applies synthetic skew on top of the italic font file, breaking rendering. Platform-branched insrc/ui/core/text/text.tsx.
[0.5.2] - 2026-05-06
Fixed
Text: always passfontStylethrough to the underlying core text component for iOS italic rendering (superseded by the platform-branched fix in 0.5.3).
[0.5.1] - 2026-05-06
Added
Text:fontStyleprop with named italic font file resolution — when a font has a registered italic PostScript variant (e.g.Newsreader9pt-Italic), it's resolved and used instead of relying on synthetic italic.
[0.5.0] - 2026-04-28
Added
IVajraCustomColorsmodule-augmentation interface so consumers can add or override color tokens with full type safety.IVajraFontSizeTokensaugmentation interface and a newf-2.5(18px) font size token.fontSizes/lineHeightsmoved into the theme object, with custom font size tokens supported viaIVajraFontSizeTokensandcreateVajraTheme.
Changed
docs/theming.mdrewritten to accurately document the "Bring Your Own Theme" (BYOT) model and all augmentation interfaces.
[0.4.0] - 2026-04-11
Added
opacityprop onBox.
[0.3.4] - 2026-04-11
Added
opacityprop onBox(see 0.4.0 — tag cut same day, no functional delta).
[0.3.3] - 2026-04-11
Added
- Rounded tokens
r-5throughr-10, plusoverflow/positionprops onBox, and anIVajraRoundedTokensaugmentation interface. IVajraSpacingTokensandIVajraFontVariantsaugmentation interfaces, and typography overrides increateVajraTheme.fontSizeprop onTextfor finer-grained sizing control.
[0.3.0] - 2026-04-11
Fixed
- Variant resolution bug in
Button.
Changed
- Icon-related prop changes across components for maximum compatibility with consumer apps.
[0.2.1] - 2026-04-09
Changed
- Internal path/config change (no consumer-facing API change).
[0.2.0] - 2026-04-09
Added
releasescript (build+npm publish --access public).
[0.1.0] - 2026-04-09
Initial tagged release. Project scaffolding, CODING_GUIDELINES.md, and README.