Get started with shoelace-css CDN

MIT licensed

Shoelace-CSS is a lightweight, modular CSS-in-JS library for building accessible, composable components in React.

  • basics
  • css
  • starter

Stable version


How to start using shoelace-css CDN

<!DOCTYPE html>
  <link rel="stylesheet" href="" />
  <title>Get started with shoelace-css CDN -</title>
  <form class="form" onsubmit="event.preventDefault(); handleFormSubmit(event)">
    <sl-label for="name">Name:</sl-label>
    <sl-input id="name" name="name" value="John Doe" required></sl-input>
    <sl-error id="name-error" if="$">Please enter a valid name.</sl-error>

    <button type="submit">Submit</button>

    function handleFormSubmit(event) {
      // Form validation and submission logic here

All versions