Release 3.0.0
The forth release of Intent UI. It includes all the components and utilities that you need to build your next project.
Introduction
Almost every component has been rewritten. This release improves the developer experience and introduces a more consistent API across components. You may also notice that v3 is slightly more compact than v2, with improved usability on mobile devices.
New component
What's change
- Upgraded to the latest versions of React Aria Components and Tailwind CSS.
- Removed legacy size values (
square-petite
,extra-small
,small
,medium
,large
) from thesize
prop inButton
andToggle
. Now usingxs
,sm
,md
,lg
, andsq-[xs, sm, md, lg]
. - Removed legacy size values (
small
,medium
,large
,extra-large
from thesize
prop inAvatar
. Now usingxs
,sm
,md
,lg
,xl
. - Removed the
shape
prop fromButton
,Badge
,Tag
, andToggle
. Use theisCircle
prop instead. - Removed
focusRing
andfocusStyles
fromprimitive.ts
—they are no longer used. classNames
remove for bothSheet
andModal
components. Now, you can use theclassName
prop to customize the styles on theModal.Content
andSheet.Content
components.- We make default
gap=0
andcolumns=1
forChoicebox
component. - Add
Loader
toFileTrigger
when the pending state is true. - We no longer use Compound Pattern in
Tabs
component. Instead, we use a more straightforward approach withTabs
,TabList
,Tab
, andTabPanel
components. - We also remove
motion
fromTabs
component, so you can use any animation library you prefer or leave it unanimated. - The
Chart
component has been completely rewritten to use the latest version of Recharts (v3).
Toggle Group
The ToggleGroup
component has been introduced to provide a more intuitive way for users to switch between multiple options, supporting both single and multi-selection modes.
Button
The Button
component has undergone significant changes, including the removal of the shape
prop and the introduction of the isCircle
prop. The size values have also been updated to be more concise.
Toggle
The Toggle
component has been updated to use the new size values and the isCircle
prop. The shape
prop has been removed.
CheckBox and Radio
We’ve improved the user experience on Checkbox
, CheckboxGroup
, and RadioGroup
by allowing direct use of Label
and Description
components inside them. This gives you more flexibility to customize content. If you prefer using the label
and description
props, they’re still fully supported.
Component "controls/checkbox-group/switch-description-demo" not found in the registry.
Switch
The Switch
component now supports descriptions. You can use the label
and description
props, or use the Label
and Description
components directly—both approaches work.
Charts
We've completely rewritten the charts to use recharts
v3. We're also introducing dedicated components for common chart types: AreaChart
, BarChart
, LineChart
, and PieChart
.
Area Chart
Bar Chart
Line Chart
Pie Chart
Primitive
We also now changes the composeTailwindRenderProps
to accept ClassNameValue
, so you might want to update it manually if you already have one.