Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dist
docs/static/oat.min.*
43 changes: 43 additions & 0 deletions docs/content/recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,50 @@ Use `menu.buttons` for joined controls and `ot-dropdown` for secondary actions.
```
{% end %}

## Radio cards

Use `input[type="radio"]` and `label` to create selectable cards.

{% demo() %}
```html
<div class="container">

<header>
<h3>Billing</h3>
<p class="text-light">Select a billing cycle</p>
</header>

<div class="row mt-4">

<div class="col-4 card">
<div class="hstack justify-between">
<strong>Monthly</strong>
<input type="radio" name="billing" id="monthly">
</div>
<label for="monthly" class="text-light mt-2">$12 / mo</label>
</div>

<div class="col-4 card">
<div class="hstack justify-between">
<strong>Yearly</strong>
<input type="radio" name="billing" id="yearly">
</div>
<label for="yearly" class="text-light mt-2">$96 / yr · save 33%</label>
</div>

<div class="col-4 card">
<div class="hstack justify-between">
<strong>Lifetime</strong>
<input type="radio" name="billing" id="lifetime" checked>
</div>
<label for="lifetime" class="text-light mt-2">$299 once</label>
</div>

</div>

</div>
```
{% end %}

## Form card

Expand Down