Skip to content

Commit

Permalink
Document headings API ref page and Titled
Browse files Browse the repository at this point in the history
  • Loading branch information
audreyfeldroy committed Oct 24, 2024
1 parent 12f0662 commit af5d969
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions lib_nbs/01_core.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Headings"
"## Headings\n",
"\n",
"> fh-frankenui provides FastTags that generate headings with the styles defined in the [FrankenUI Headings documentation](https://franken-ui.dev/docs/heading)."
]
},
{
Expand Down Expand Up @@ -532,6 +534,7 @@
"source": [
"#| export\n",
"def Titled(title:str=\"FastHTML app\", *args, cls=\"container\", **kwargs)->FT:\n",
" \"A H1 with Styling, whose title is also used in the page's title tag\"\n",
" return fh.Title(title), fh.Main(H1(title), *args, cls=cls, **kwargs)"
]
},
Expand Down Expand Up @@ -3441,9 +3444,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "python3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.4"
}
},
"nbformat": 4,
Expand Down

0 comments on commit af5d969

Please sign in to comment.