React¶
npm install @tarekeldeeb/quran-madina-react react
import QuranMadinaHtml from "@tarekeldeeb/quran-madina-react";
export default function App() {
return <QuranMadinaHtml sura={2} aya="255" />;
}
The component loads the library for you, so there is no script tag to add. Props take the same
names as the tag's attributes, plus layout and fontSize for the page-wide options.
For offline use, npx quran-madina-bundle copies the library into your app and bundled
loads it from there. The same component runs on iOS and Android inside a Capacitor app. See React
for every prop and the mobile guide.