Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
@smui/common
Advanced tools
These common components are used in other components.
You can also use the elemental components to switch the HTML element that an SMUI component with a component
prop uses.
npm install --save-dev @smui/common
A common label.
The common label is used everywhere that exports a Label
component.
use
: []
- An array of Svelte actions and/or arrays of an action and its options.class
: ''
- A CSS class string.All standard UI events are forwarded.
A common icon.
The common icon is used everywhere that exports an Icon
component except for textfield
and select
.
component
: I
- A component to use as the root element.use
: []
- An array of Svelte actions and/or arrays of an action and its options.class
: ''
- A CSS class string.on
: false
- Used in the context of an icon button toggle to denote the icon for when the button is on.All standard UI events are forwarded.
These components are not exported in the index file, but are available to be imported directly. They are generally used for simple components which only add a class to an element.
A base component that adds a class to an element. The ClassAdder is used to provide simple components. It usually uses one of the elemental components listed below, but you can specify a different component for it to use. Every elemental component supports the use
prop.
component
: (depends on context)
- The component to extend. Usually it is set to one of the elemental components below.use
: []
- An array of Svelte actions and/or arrays of an action and its options.class
: ''
- A CSS class string.forwardEvents
: []
- An array of additional events that should be forwarded.A fragment component (only contains a <slot />
) used to define a Svelte context with a Svelte store.
key
: undefined
- The key of the Svelte context.value
: undefined
- The value of the store contained in the Svelte context. The store will be updated when the value changes.These components are used in SMUI components that take a component
prop. They determine which HTML element will be used as the root element of the component.
use
: []
- An array of Svelte actions and/or arrays of an action and its options.forwardEvents
: []
- An array of additional events that should be forwarded.An elemental component for the a
tag.
An elemental component for the aside
tag.
An elemental component for the button
tag.
An elemental component for the div
tag.
An elemental component for the footer
tag.
An elemental component for the h1
tag.
An elemental component for the h2
tag.
An elemental component for the h3
tag.
An elemental component for the h4
tag.
An elemental component for the h5
tag.
An elemental component for the h6
tag.
An elemental component for the header
tag.
An elemental component for the hr
tag.
An elemental component for the i
tag.
An elemental component for the img
tag.
An elemental component for the li
tag.
An elemental component for the main
tag.
An elemental component for the nav
tag.
An elemental component for the section
tag.
An elemental component for the span
tag.
An elemental component for the svg
tag.
An elemental component for the ul
tag.
FAQs
Svelte Material UI - Common
The npm package @smui/common receives a total of 10,513 weekly downloads. As such, @smui/common popularity was classified as popular.
We found that @smui/common 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.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.