![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@spectrum-web-components/infield-button
Advanced tools
Web component implementation of a Spectrum design InfieldButton
When composing complex form fields, an <sp-infield-button>
can visually associate button functionality with other form fields to delivery enhanced capabilities to your visitors.
yarn add @spectrum-web-components/infield-button
Import the side effectful registration of <sp-infield-button>
via:
import '@spectrum-web-components/infield-button/sp-infield-button.js';
When looking to leverage the InfieldButton
base class as a type and/or for extension purposes, do so via:
import { InfieldButton } from '@spectrum-web-components/infield-button';
<sp-infield-button label="Add" size="s">
<sp-icon-add></sp-icon-add>
</sp-infield-button>
Medium
<sp-infield-button label="Add" size="m">
<sp-icon-add></sp-icon-add>
</sp-infield-button>
Large
<sp-infield-button label="Add" size="l">
<sp-icon-add></sp-icon-add>
</sp-infield-button>
Extra Large
<sp-infield-button label="Add" size="xl">
<sp-icon-add></sp-icon-add>
</sp-infield-button>
Use the inline
attribute to describe whether the <sp-infield-button>
should be visually at the start
or end
of the field is associated to:
<sp-infield-button inline="start" label="Add">
<sp-icon-add></sp-icon-add>
</sp-infield-button>
<sp-infield-button inline="end" label="Add">
<sp-icon-add></sp-icon-add>
</sp-infield-button>
The block
attribute can be used to create a vertial stack of buttons. You can place buttons visually on the stack with the start
or end
values:
<sp-infield-button block="start" label="Increment">
<sp-icon-add size="xxs"></sp-icon-add>
</sp-infield-button>
<sp-infield-button block="end" label="Decrement">
<sp-icon-remove size="xxs"></sp-icon-remove>
</sp-infield-button>
An <sp-infield-button>
with the disabled
attribute will become non-interactive and dimmed:
<sp-infield-button disabled inline="start" label="Add">
<sp-icon-add></sp-icon-add>
</sp-infield-button>
An <sp-infield-button>
with the quiet
attribute will feature a diminished visual presence:
<sp-infield-button inline="start" label="Add" quiet>
<sp-icon-add></sp-icon-add>
</sp-infield-button>
FAQs
Web component implementation of a Spectrum design InfieldButton
The npm package @spectrum-web-components/infield-button receives a total of 3,004 weekly downloads. As such, @spectrum-web-components/infield-button popularity was classified as popular.
We found that @spectrum-web-components/infield-button demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 13 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.