Skip to content

Commit

Permalink
馃摉 Document link option with card (#1185)
Browse files Browse the repository at this point in the history
Co-authored-by: Rowan Cockett <rowanc1@gmail.com>
  • Loading branch information
choldgraf and rowanc1 committed May 7, 2024
1 parent 1f57852 commit 345e091
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/dropdowns-cards-and-tabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,16 @@ Card content
```
````

You can also add a `link` argument to the card, which will allow you to make the entire card clickable.
You can also add a `link` option to the card, which will allow you to make the entire card clickable:

````{myst}
:::{card} Clickable Card
:link: https://mystmd.org
The entire card can be clicked to navigate to `mystmd.org`.
:::
````

````{note} Compatibility with Sphinx design
:class: dropdown
Expand Down Expand Up @@ -88,6 +91,9 @@ Note that, card headers and footers are optional. If you don鈥檛 include ^^^ or
footer _(optional, markdown)_
: Styled content at the bottom of the card

link _(optional, string)_
: If given, clicking the card will direct you to the URL given here.

### Grids

Grids allow you to structure arbitrary chunks of content in a grid-like system.
Expand Down

0 comments on commit 345e091

Please sign in to comment.