๐ฏ the slop form library
a collection of form patterns with proper focus states, validation messages, and 44px minimum touch targets. all client-side, no submission, no storage, no tracking.
the slop form library works with prefers-reduced-motion, prefers-color-scheme, and all the usual suspects. implemented in js/forms-rules.js and js/forms.js.
๐งโโ๏ธ multi-step slop wizard STEPPER
multi-step registration wizard with client-side validation per step, progress indicator, and state persistence.
step 1 of 3 (33%)
๐งช advanced inputs NEW
date, time, color picker with live preview, and file upload with size/type validation.
๐พ form state persistence LOCALSTORAGE
save your form draft to localStorage, reload the page, and restore it instantly without losing progress.
๐ text inputs
basic text, email, url, password, search, tel, number. all 44px+ touch targets, focus rings, validation messages.
๐ textarea
multi-line text with resize handle, focus ring, validation. character counter included.
๐ฏ select menus
native select with 44px+ touch target, focus ring, disabled state, validation.
โ checkboxes & radios
custom-styled with 44px+ touch targets, focus rings, validation. native input hidden, label clicked.
๐ก๏ธ range sliders
range inputs with 44px+ touch targets, focus ring, value display, disabled state.
๐ฑ๏ธ buttons
button variants: default, big, disabled, primary, ghost. 44px+ touch targets, focus rings, hover/active states.
๐ก๏ธ validation patterns
real-time validation, async validation, error states, success states. no page reloads.
โฟ accessibility
screen reader labels, focus management, keyboard navigation, reduced motion, high contrast.
this is additional context
โจ enhanced focus states & touch targets NEW
visual focus ring demonstrations, touch target compliance (44px minimum), and animated validation feedback.
Focus Ring Styles
All interactive elements use :focus-visible with 3px solid outline and 3px offset.
Touch Target Compliance (44px minimum)
Every interactive element meets WCAG AA touch target requirements.
Animated Validation Feedback
Validation messages shake on error, show checkmarks on success.
Error State with Shake Animation
Error messages animate to draw attention without being aggressive.
๐งช enhanced input types & patterns NEW
Advanced form inputs with live preview, validation, and 44px+ touch targets.
๐ form examples & templates
ready-to-use form templates with all patterns applied.
real-time validation, async username check, date/time/color/file inputs, state persistence
multi-step with per-step validation, progress indicator, localStorage draft saving
password visibility toggle, remember me, forgot password link, async submit simulation
single-page registration with auto-save, password toggle, async username check, 44px touch targets
๐งช full form demo
realistic form with all patterns together. submit button validates and shows toast.