diff --git a/README.md b/README.md index 056f3b8c4..ad63fac92 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ - [Init functions](#init-functions) - [ESM and CJS](#esm-and-cjs) - [TypeScript](#typescript) + - [RTL support](#rtl-support) - [JavaScript Frameworks](#javascript-frameworks) - [Back-end Frameworks](#back-end-frameworks) - [Components](#components) @@ -91,13 +92,13 @@ The quickest way to get started working with Flowbite is to simply include the C Require the following minified stylesheet inside the `head` tag: ```html - + ``` And include the following javascript file before the end of the `body` tag: ```html - + ``` ### Bundled JavaScript @@ -195,7 +196,7 @@ const $modalElement = document.querySelector('#modalEl'); const modalOptions = { placement: 'bottom-right', backdrop: 'dynamic', - backdropClasses: 'bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-40', + backdropClasses: 'bg-gray-900/50 dark:bg-gray-900/80 fixed inset-0 z-40', onHide: () => { console.log('modal is hidden'); }, @@ -247,6 +248,10 @@ const modal: ModalInterface = new Modal($modalElement, modalOptions); Learn more about Flowbite and TypeScript in the [quickstart guide](https://flowbite.com/docs/getting-started/typescript/). +### RTL support + +All of the Flowbite UI components have native RTL support and you can easily set it up by using the `dir="rtl"` attribute on the HTML element. Read more about Flowbite and [RTL support here](https://flowbite.com/docs/customize/rtl/). + ### JavaScript Frameworks The awesome open-source community also built and currently maintains the following standalone libraries for React, Vue, Svelte, and Angular: diff --git a/config.yml b/config.yml index d1b646d26..d770bf808 100644 --- a/config.yml +++ b/config.yml @@ -5,7 +5,7 @@ enableInlineShortcodes: true params: homepage: "https://flowbite.com" - current_version: 2.0.0 + current_version: 2.1.0 authors: Themesberg social_image_path: /docs/images/og-image.png diff --git a/content/components/accordion.md b/content/components/accordion.md index 602d1ef09..80665afcc 100644 --- a/content/components/accordion.md +++ b/content/components/accordion.md @@ -6,8 +6,8 @@ group: components toc: true requires_js: true -previous: Optimization -previousLink: customize/optimization/ +previous: RTL (Right-To-Left) +previousLink: customize/rtl/ next: Alerts nextLink: components/alerts/ --- @@ -30,7 +30,7 @@ Use the `data-accordion="collapse"` to collapse every other child element when e {{< example id="default-accordion-example" github="components/accordion.md" show_dark=true >}}