Skip to content

Commit

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

The new `sd-leadtext` is designed to replace the `ui-leadtext`. Rather than offering a complex component structure, they primarily focus on providing CSS styles to highlight important text.

## 💾 Slots

### ❌ Removed Slots

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

1. [default]

<hr />

### ❌ Removed Attributes

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

1. [variant]

<hr />

## 🎨 CSS Classes

### ✨ New CSS Classes

#### [sd-leadtext--size-lg]

This class sets the size of the leadtext element. You can use this option for a larger text size to accomodate smaller container/screen sizes.

#### [sd-leadtext--inverted]

This class inverts the leadtext text.

<hr />

0 comments on commit b343602

Please sign in to comment.