Skip to content

Commit

Permalink
docs: 📚 add migration guide for sd-paragraph (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vahid1919 authored Nov 29, 2023
1 parent acaff2d commit 4297ee5
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions packages/components/src/docs/Migration/ui-paragraph.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Migration Guide: From `ui-paragraph` to `sd-paragraph`

The new `sd-paragraph` is designed to replace the `ui-paragraph`. Rather than offering a complex component structure, they primarily focus on providing CSS styles for paragraph elements.

## 💾 Slots

### ❌ Removed Slots

The following slots have been removed from the new sd-paragraph component:

1. [default]

<hr />

## ⚙️ Attributes

### ❌ Removed Attributes

The following attributes have been removed from the new sd-paragraph component:

1. [columns]

<hr />
## 🎨 CSS Classes

### ✨ New CSS Classes

#### [sd-paragraph--size-sm]

This class sets a smaller paragraph size. You can use this option for a smaller font size to accomodate smaller container/screen sizes.

#### [sd-paragraph--inverted]

This class inverts the paragraph element.

<hr />

0 comments on commit 4297ee5

Please sign in to comment.