@libraz/mejiro-react 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -31,6 +31,17 @@ export default function App() {
31
31
  html, body, #root { height: 100%; margin: 0; }
32
32
  ```
33
33
 
34
+ To embed in normal page flow instead (a blog post, a docs page) with no height
35
+ math, use `fit="width"` — the reader self-sizes its height from its width:
36
+
37
+ ```tsx
38
+ <MejiroReader epubUrl="/book.epub" fit="width" />
39
+ ```
40
+
41
+ > Embedding inside a framework with an unlayered global CSS reset (Next.js,
42
+ > Tailwind preflight, normalize.css)? See the [cascade-layers note](https://github.com/libraz/mejiro/tree/main/docs/en/08-react-and-vue.md#css-cascade-layers-host-resets-can-clobber-the-reader-chrome)
43
+ > so host resets don't clobber the reader chrome.
44
+
34
45
  ## Templates
35
46
 
36
47
  Copy-paste-ready starters live under [`examples/`](https://github.com/libraz/mejiro/tree/main/examples):