2.0.2 • Published 12 months ago

vite-plugin-simple-scope v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

simple scope šŸ”Ž

Get a scoped ID for whatever file you're in. Resolved at build-time with zero client JS.

import { scope } from 'simple:scope';

function Form() {
  return (
    <form>
      <label htmlFor={scope('email')}>Email</label>
      <input id={scope('email')} name="email" />
    </form>
  );
}

/*
Output:

<form>
  <label for="email-dj23i_ka">Email</label>
  <input id="email-dj23i_ka" name="email">
</form>
*/

šŸ“š Visit the docs for more information and usage examples.

2.0.2

12 months ago

2.0.1

12 months ago

2.0.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago