primaryShade on theme
New theme.primaryShade
property is used to determine which shade will be used for the components that have color
prop,
it defaults to 6. Note that for some variants with dark color scheme primaryShade
will not be used as it will cause contrast issues.
primaryShade
can also be customized for dark and light color scheme separately:
Indicator component
New Indicator component:
use-focus-within hook
New use-focus-within hook detects if any element within has focus,
it works the same way as :focus-within
CSS selector:
use-network hook
New use-network hook returns current connection status:
Property | Value |
---|---|
Online | Online |
rtt | |
downlink | |
effectiveType | |
saveData | false |
New features
Calendar component now supports multiple selected dates:
Mo | Tu | We | Th | Fr | Sa | Su |
---|---|---|---|---|---|---|
Modal and Drawer components now support setting overlay blur:
Calendar, Month and DatePicker components
now support custom day renderer with renderDay
function:
Mo | Tu | We | Th | Fr | Sa | Su |
---|---|---|---|---|---|---|
SegmentedControl component now supports disabled items:
Other changes
- use-window-event hook now supports custom events
- use-local-storage hook now supports value sync in the same tab
- RichTextEditor now supports placeholder