diff --git a/docs/content/docs/1.getting-started/3.migration/2.v3.md b/docs/content/docs/1.getting-started/3.migration/2.v3.md index 836f1a327f..82e07f7511 100644 --- a/docs/content/docs/1.getting-started/3.migration/2.v3.md +++ b/docs/content/docs/1.getting-started/3.migration/2.v3.md @@ -399,6 +399,204 @@ This change affects the following components: `Modal`, `Slideover`. + ``` +#### Accordion +The `Accordion` component has been hugely redesigned to provide a clearer state model, improved accessibility, and more flexible customization. As a result, its API is not fullybackward compatible. + +Below are the most important changes to migrate existing usage. + +- The `multiple` prop has been replaced by the `type` prop: + +```diff + +``` +When omitted, `type` defaults to `single`. + +- The `default-open` prop and `defaultOpen` **item** property have been removed. + +Accordion state is now controlled using default-value (uncontrolled) or v-model (controlled): + +```diff + +``` + +- The slot API has been simplified and made more explicit. +The `#item` slot has been removed in favor of `#content` and `#body`: + +```diff + +``` + +::note +The default slot now only customizes the trigger, with additional slots for finer control (`#leading`, `#trailing`, `#body`). +:: + +::note +The Accordion now follows a controlled / uncontrolled pattern (v-model / default-value) and introduces a more structured slot and styling system. +Refer to the Accordion documentation for full details and advanced use cases. +:: + + +#### Table +The `Table` component had a major redesign, as it now uses the [TanStack Table](https://tanstack.com/table/latest){target="_blank" rel="noopener"} under the hood. This resulted in an almost new API and some breaking changes, but with many great features along the way. + +Below are the most important changes to migrate existing usage. + +- The `rows` prop has been renamed in favbor of `data`: + +```diff + +``` + +- Columns definition is now explicit & semantic: + +```diff + +``` + +- Row cell slot names has been changed from `-data` to `-cell`: + +```diff +