-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
192 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ test | |
dist | ||
.DS_Store | ||
.tmp | ||
|
||
.env.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap"); | ||
|
||
html, | ||
body { | ||
font-size: 28px; | ||
font-family: "Inter", sans-serif; | ||
} | ||
|
||
@page { | ||
size: A4; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,77 @@ | ||
--- | ||
title: Footnote | ||
icon: info | ||
--- | ||
|
||
## Footnote | ||
|
||
Creates an automatically numbered footnote. This will remove the footnote content from the document flow and place it at the bottom of the page. | ||
|
||
<Frame type="glass"><img src="images/previews/footnote-7404e94f/document.1.jpg" style={{height: '400px'}} /></Frame> | ||
### Examples | ||
|
||
#### Preview | ||
|
||
<Frame type="glass"><img className="shadow shadow-black/20" src="images/previews/footnote-7404e94f/document.1.jpg" style={{ height: '400px' }} /></Frame> | ||
|
||
<div style={{height: '1rem'}}></div> | ||
|
||
<CodeGroup> | ||
```jsx template.tsx | ||
import { Footnote } from "@onedoc/react-print"; | ||
|
||
```jsx | ||
<Footnote>Ceci est un exemple dynamique</Footnote> | ||
``` | ||
```css base.css | ||
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap"); | ||
|
||
html, | ||
body { | ||
font-size: 28px; | ||
font-family: "Inter", sans-serif; | ||
} | ||
|
||
@page { | ||
size: A4; | ||
} | ||
|
||
``` | ||
</CodeGroup> | ||
|
||
#### Test | ||
|
||
<Frame type="glass"><img className="shadow shadow-black/20" src="images/previews/footnote-32d75237/document.1.jpg" style={{ height: '400px' }} /></Frame> | ||
|
||
<div style={{height: '1rem'}}></div> | ||
|
||
<CodeGroup> | ||
```jsx template.tsx | ||
import { Footnote } from "@onedoc/react-print"; | ||
|
||
( | ||
<Footnote> | ||
Ceci est un exemple d'une footnote qui est très longue et qui a du styling de configuré dessus. | ||
</Footnote> | ||
) | ||
``` | ||
```css base.css | ||
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap"); | ||
html, | ||
body { | ||
font-size: 28px; | ||
font-family: "Inter", sans-serif; | ||
} | ||
@page { | ||
size: A4; | ||
} | ||
``` | ||
</CodeGroup> | ||
### API | ||
<ResponseField name="Props"> | ||
<Expandable title="Show available props"> | ||
<ResponseField name="children" type="React.ReactNode" required={true}>The text to display in the footnote. This can be rich text.</ResponseField> | ||
</Expandable></ResponseField> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters