
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@isoftdata/svelte-button
Advanced tools
npm i @isoftdata/svelte-button
| Prop | Type | Description | Default |
|---|---|---|---|
block | boolean | Render the button as block, spanning the whole width of its parent. | false |
color | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark" | The bootstrap color of the button. | "primary" |
colorGreyDisabled | boolean | Whether the button is greyed out when disabled. | true |
disabled | boolean | Whether the button is disabled. | false |
download | string | null | The filename to download when the button is clicked. | null |
href | string | null | The URL to link to when the button is clicked. | null |
icon | object | All options relating to the Icon component. | { class: "", color: null, style: null, prefix: "far", fixedWidth: true, icon: null } |
iconClass | string | null | The FontAwesome icon name, excluding the leading fa-, e.g. pencil. Either specify this prop, or icon.icon. | null |
id | string | null | The ID of the button. | null |
outline | boolean | Whether the button is outlined. | false |
size | "" | "xs" | "sm" | "lg" | The size of the button. | "" |
style | string | null | The inline style of the button. | null |
target | string | null | The target of the link when the button is clicked. | null |
textClass | string | null | Any classes to apply to the button text | null |
title | string | null | The title of the button. | null |
type | "button" | "submit" | "reset" | The type of the button. | "button" |
wrap | boolean | Whether the button should wrap its contents. | false |
<script>
import Button from "@isoftdata/svelte-button"
</script>
<Button
color="primary"
iconClass="0"
on:click={() => alert("Clicked!")}
>
Click Me!
</Button>
<Button
color="danger"
outline
icon={ { icon: "1" } }
size="xs"
href="https://google.com"
target="_blank"
>
Google
</Button>
FAQs
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
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.