![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
svelte-primitives
Advanced tools
A library with fully accessible svelte components acting as primitives.
A library with fully accessible svelte components acting as primitives.
All this components are designed with accessibility in mind. Here are some of the ways in which they are accessible:
By incorporating these and other accessibility best practices, we can help ensure that our components are usable and effective for as many users as possible, regardless of their abilities or assistive technology needs.
$ npm i svelte-primitives
In your svelte files you can import any of this components:
import { Button } from 'svelte-primitives'
A fully accessible button component for Svelte applications.
label
(string, default: 'Submit'): Text displayed on the button.type
('button' | 'submit' | 'reset', default: 'button'): Button type.disabled
(boolean, default: false): Determines if the button is disabled.ariaLabel
(string | null, default: null): Optional ARIA label.click
: Emitted when the button is clicked. Payload: MouseEvent.<Button
label="Submit"
type="submit"
disabled={false}
on:click={() => console.log('Button clicked!')}
class="custom-class"
style="background-color: red;"
/>
An accessible input component for Svelte applications.
id
(string): Unique identifier for the input field.label
(string): Text label for the input field.type
(string, default: 'text'): Input field type.value
(string, default: ''): Current input field value.placeholder
(string, default: ''): Placeholder text.required
(boolean, default: false): Determines if the input is required.disabled
(boolean, default: false): Determines if the input is disabled.ariaDescribedBy
(string | null, default: null): Optional ARIA description.input
: Emitted when the input value changes. Payload: Event.<Input
id="username"
label="Username"
type="text"
value=""
placeholder="Enter your username"
required={true}
on:input={() => console.log('Input changed!')}
class="custom-class"
style="background-color: yellow;"
/>
A fully accessible checkbox component for Svelte applications.
id
(string): Unique identifier for the checkbox.label
(string): Text label for the checkbox.checked
(boolean, default: false): Determines if the checkbox is checked.required
(boolean, default: false): Determines if the checkbox is required.disabled
(boolean, default: false): Determines if the checkbox is disabled.ariaDescribedBy
(string | null, default: null): Optional ARIA description.change
: Emitted when the checkbox value changes. Payload: Event.<Checkbox
id="my-checkbox"
label="Check me"
checked={false}
on:change={() => console.log('Checkbox changed!')}
class="custom-class"
style="background-color: blue;"
/>
An accessible image component for Svelte applications.
src
(string): The URL for the image.alt
(string, default: ''): The alternative text for the image.<Image
src="https://example.com/image.jpg"
alt="Example Image"
class="custom-class"
style="background-color: green;"
/>
An accessible textarea component for Svelte applications.
id
(string): Unique identifier for the textarea field.label
(string): Text label for the textarea field.value
(string, default: ''): Current textarea field value.placeholder
(string, default: ''): Placeholder text.required
(boolean, default: false): Determines if the textarea is required.disabled
(boolean, default: false): Determines if the textarea is disabled.ariaDescribedBy
(string | null, default: null): Optional ARIA description.input
: Fired whenever the textarea value changes.<Textarea
id="my-textarea"
label="My Textarea"
value="Hello, World!"
placeholder="Type something here..."
required
aria-describedby="textarea-instructions"
class="custom-class"
style="background-color: lightblue;"
on:input={handleTextareaInput}
/>
FAQs
A library with fully accessible svelte components acting as primitives.
The npm package svelte-primitives receives a total of 1 weekly downloads. As such, svelte-primitives popularity was classified as not popular.
We found that svelte-primitives demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.