![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@avocode/styled-avocode-email-tagsinput
Advanced tools
React input component that handles creation and removal of tags based on matching email regex. Includes opinionated styles.
React input component for displaying tags. This componenty needs to be controlled from outside in order to work correctly. The input is rendered as SlateJS editor.
This component is wrapper for AvocodeEmailTagsInput
component (@avocode/avocode-email-tagsinput
) and contains opinionated styles based on Avocode UI kit.
This library exposes component StyledAvocodeEmailTagsInput
which accepts theme
prop and controls the visual style of the input. Please refer to the documentation of @avocode/avocode-email-tagsinput
for more information.
Also utils
object is exposed as well, along Flow type definitions.
import StyledAvocodeEmailTagsInput from '@avocode/styled-avocode-email-tagsinput'
import '@avocode/styled-avocode-email-tagsinput/dist/main.css';
// [...]
render() {
return (
<StyledAvocodeEmailTagsInput
theme='light'
tags={this.state.tags}
query={this.state.query}
onQueryChangeRequest={this._handleQueryChange}
onTagAddRequest={this._handleTagAdd}
onTagDeleteRequest={this._handleTagDelete}
/>
)
}
This input receives the same props as components in @avocode/avocode-email-tagsinput library.
In short you need to pass at least these props:
tags
query
onQueryChangeRequest
onTagAddRequest
onTagDeleteRequest
theme?: 'light' | 'dark'
Sets light or dark theme. This prop can be ommited and default theme is set to light. Variables used with each theme are then applied to given CSS classes.
error?: any
Style component for default error state. If the value evaluates as truthy, it's considered that the input has error. Additionally you can add state
property with value "error"
to Tag object to mark specific emails as errored as well (for example validation errors).
FAQs
React input component that handles creation and removal of tags based on matching email regex. Includes opinionated styles.
The npm package @avocode/styled-avocode-email-tagsinput receives a total of 1 weekly downloads. As such, @avocode/styled-avocode-email-tagsinput popularity was classified as not popular.
We found that @avocode/styled-avocode-email-tagsinput demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 23 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
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.