Closed driss-chelouati closed 5 months ago
This PR introduce a breaking change in the configuration, we removed defaultShapes from app.config.ts and replaced with a map with components name as key and a list of props that are applied by default when omitted.
defaultShapes
app.config.ts
Before:
export default defineAppConfig({ nui: { defaultShapes: { accordion: 'rounded', }, } })
After:
export default defineAppConfig({ nui: { BaseAccordion: { rounded: 'sm', action: 'chevron', }, } })
It also adds breaking changes to components properties to align with https://github.com/shuriken-ui/tailwind/pull/59, you can see the how to migrate section there
elevated
elevatedHover
shadow?: 'flat' | 'hover'
size
'xs' | 'sm' | 'md' | 'lg'
Breaking Changes
Configuration
This PR introduce a breaking change in the configuration, we removed
defaultShapes
fromapp.config.ts
and replaced with a map with components name as key and a list of props that are applied by default when omitted.Before:
After:
@shuriken-ui/tailwind v2.0
It also adds breaking changes to components properties to align with https://github.com/shuriken-ui/tailwind/pull/59, you can see the how to migrate section there
Additional changes
elevated
andelevatedHover
props withshadow?: 'flat' | 'hover'
size
props:'xs' | 'sm' | 'md' | 'lg'