
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
@forter/button
Advanced tools
An element by Forter
<script>
import '@forter/button';
</script>
<fc-button>Button</fc-button>
<!-- flat icon -->
<fc-button flat="true" icon="edit"></fc-button>
* <!-- no text -->
<fc-button icon="edit"></fc-button>
<!-- intent loading -->
<fc-button loading intent="success">Submit</fc-button>
Property | Attribute | Type | Default | Description |
---|---|---|---|---|
disabled | disabled | boolean | false | If the button is disabled |
flat | flat | boolean | false | flatness of the button |
icon | icon | string | The button's icon. example: admin , default: forter | |
intent | intent | "primary" | "secondary" | "apply" | "success" | "danger" | "warn" | "cancel" | The button's intent. See Intents in README | |
invalid | invalid | boolean | false | Specify to display the x sign |
loading | loading | boolean | false | If the button is loading |
valid | valid | boolean | false | Specify to display the checkmark sign |
width | width | "small" | "medium" | "large" | The button's preset sizes |
Event | Description |
---|---|
click | fires once value changed. example: { "target": { "checked": true } } |
Name | Description |
---|---|
textContent for the checkbox label. example: <span> My Button </span> |
Property | Description |
---|---|
--fc-button-background-color | button background colour. |
--fc-button-border-radius | button border radius. |
--fc-button-box-shadow | button box shadow. example: none |
--fc-button-color | button colour. |
--fc-button-font | button font. example: var(--fc-font-20px-600) |
--fc-button-hover-text-color | change flat type text color |
--fc-button-inner-margin | button inner margin. example: 10px |
--fc-button-justify-content | justify content. example: left |
--fc-button-min-height | button height. example: 200px |
--fc-button-min-width | button min-width. example: 200px |
--fc-button-text-transform | button text transform. example: uppercase |
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.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.