Skip to content

Commit 0defa12

Browse files
AhyoungRyuHoonBaek
authored andcommitted
Add RTL usage example
1 parent 02aff11 commit 0defa12

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
### Features
66
- **RTL Support**
77
- Added `htmlTextDirection` prop to `SendbirdProvider` to support Right-To-Left (RTL) text direction for Middle East customers. [Read more](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dir).
8+
```tsx
9+
import ar from 'date-fns/locale/ar';
10+
<SendbirdProvider
11+
...
12+
htmlTextDirection={'rtl' | 'ltr'}
13+
// Setting a proper value to dateLocale would be necessary
14+
dateLocale={ar}
15+
>
16+
</SendbirdProvider>
17+
```
818

919
- **DX Improvements: ChannelSetting SettingMenu**
1020
- Added new components and hooks to make the menu items in the `ChannelSettingsUI` more modular and customizable.

0 commit comments

Comments
 (0)