Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Floating action buttons represent the primary action in a screen or app.
npm install --save-dev @smui/fab
The latest SMUI v3 beta had a lot of changes, and these docs haven't been caught up yet. You should check out the demo page's code to see the latest usage.
<Fab on:click={doSomething}><Icon class="material-icons">favorite</Icon></Fab>
<script>
import Fab, { Icon } from '@smui/fab';
function doSomething() {
alert('something');
}
</script>
A floating action button.
use
: []
- An array of Svelte actions and/or arrays of an action and its options.class
: ''
- A CSS class string.ripple
: true
- Whether to implement a ripple for when the component is interacted with.color
: 'secondary'
- The FAB's color. ('primary' or 'secondary')mini
: false
- Whether to make the FAB smaller.exited
: false
- Whether the FAB is not visible. Changing this will cause the FAB to animate in/out.extended
: false
- Whether the FAB contains a label.All standard UI events are forwarded.
A text label.
See the common label readme.
A graphic icon.
See the common icon readme.
See Buttons: floating action button in the Material design spec.
See FAB in MDC-Web for information about the upstream library's architecture.
FAQs
Svelte Material UI - Floating Action Button
The npm package @smui/fab receives a total of 2,323 weekly downloads. As such, @smui/fab popularity was classified as popular.
We found that @smui/fab demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.