FormsCheckbox and Radio Styles
Styled native checkboxes, radio buttons, option cards and chip toggles that keep their keyboard behaviour, group labels and a strong focus ring.
Ready-to-use HTML, CSS and JavaScript with a live preview. Copy the code or open any snippet in the playground.
28 snippets · page 2 of 3
FormsStyled native checkboxes, radio buttons, option cards and chip toggles that keep their keyboard behaviour, group labels and a strong focus ring.
TypographyTypography for long text: headings, lists, links, inline code, a quote, a table and a figure set in a comfortable 65-character column.
NavigationTwo side panels, one from each edge, that open over the page as native modal dialogs and give focus back to their button when they close.
LoadersA native progress bar, a bar that waits for an unknown length, a four-step tracker and a ring, all driven by one slider and all showing the value as text.
LayoutA header, a sidebar and a main area on CSS grid with a sticky header and one scrolling region; the sidebar folds behind a button on a narrow shell.
PricingA two-option billing switch that changes three example plan prices between monthly and yearly and works the saving out from the prices.
Data DisplayA table with caption, scoped headers and right-aligned numbers that reflows into labelled stacked cards on a phone, in plain CSS.
MediaTwo stacked local SVG pictures with a range input that moves a divider between them, and the split read out as a percentage.
LoadersCard and list skeletons with a shimmer that stops under reduced motion, aria-busy on the container and a button that swaps them for real content.
FeedbackA hint on hover and keyboard focus and a click-to-open popover built on the native popover attribute, with Escape to close either.
ButtonsA segmented radio control, joined buttons, icon-only buttons with accessible names and a split button whose menu is a native popover.
UtilitiesButtons that copy a line of code, say so for three seconds in a live region, and select the text for a keyboard copy when the clipboard is missing.
Try our online code playground to experiment with these snippets and create your own projects.