Bootstrap Kit
Bootstrap 5.3, as Markout components. Every example below is live: the values the controls write are the same values the rest of the page reads.
Content
Typography
Display heading
Lead paragraph, for the sentence that carries the section.
Body copy with a mark, a deletion,
an insertion and fine print.
Plain markup stays plain markup.
No components here on purpose: typography is classes, and a component that only forwards a class earns nothing.
Images & figures
Tables
| Name | Role | Joined | |
|---|---|---|---|
| Ada Lovelace | Analyst | 1843 | |
| Barbara Liskov | Substitution | 1968 | |
| Grace Hopper | Compiler | 1952 | |
| Karen Spärck Jones | Retrieval | 1972 |
:rows is an expression, so sorting the table is
sorting the array — there is no second place where the order lives.
Forms
Form controls
:aka names the instance, and its :value
is an ordinary value — which is why the sentence above needs no
event, no binding and no state of its own.
Checks, radios & switches
Plan: Pro · terms not accepted
Input groups
Components
Accordion
$host — the instance it was slotted
into, as opposed to $parent, which is the scope
it was written in. Nothing here carries an id.
Alerts
Well done
You read the whole message, and it has a heading.Badges
Breadcrumb
Buttons
Cards
Special title treatment
A card that colours itself, header and all, from one parameter — and the header is a slot, so it can hold markup rather than a string.
Carousel
Collapse
The trigger is a separate tag on purpose: more than one thing may open the same region.
Dropdowns
List group
Modal
Offcanvas
Pagination
Showing page 2 of 5
:select is a function parameter, not a DOM event: the
component calls it with the page number, and the page decides
what that means.
Placeholders
Loading…
Progress
One value, three bars: the slider writes it and the bars read it, with nothing in between.
Spinners
Toasts
Tooltips & popovers
These two are the only components Bootstrap does not start by
itself. Change the pagination above and the last tooltip's text
follows, because :handle-title rebuilds it.