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.
@atlaskit/tag-group
Advanced tools
A React component used for grouping and controlling @atlskit/tag components
This component displays an arbitrary number of @atlaskit/tag
s
in a grouped manner.
The group manages spacing and animation direction and allows for some alignment options.
Interact with a live demo of the @atlaskit/tag-group component with code examples.
npm install @atlaskit/tag-group ak-tag # @atlaskit/tag-group has a peer dependency on ak-tag
This is a React component and can be used in the following way:
import Tag from 'ak-tag';
import TagGroup from '@atlaskit/tag-group';
ReactDOM.render((
<TagGroup>
<Tag text="Cupcake" />
<Tag text="Ice cream" />
<Tag text="Chocolate" />
</TagGroup>
), container);
Kind: global class
Properties
alignment
Create instances of the component programmatically, or using markup.
JS Example
import TagGroup from 'ak-tag-group';
import Tag from 'ak-tag';
ReactDOM.render(
<TagGroup>
<Tag text="Cupcake" href="http://www.cupcakeipsum.com/" />
</TagGroup>, container);
alignment
(Optional) A group alignment.
Defaults to an empty string (which means it uses the text direction to determine the alignment (same as start)).
This setting also controls the animation direction on tag removal, e.g. start alignment means that the tags list moves to the text-start on removal end alignment means it moves to the text-end (all based on the text direction, e.g. start alignment in LTR means the tags move to the right, start alignment in RTL means the tags move to the left).
Kind: instance property of TagGroup
Default: start
JS Example
import TagGroup from 'ak-tag-group';
import Tag from 'ak-tag';
ReactDOM.render(
<TagGroup alignment="end">
<Tag text="Cupcake" />
<Tag text="Chocolate" />
</TagGroup>, container);
* Please note that there are dependencies in this module that are governed by the Atlassian Design Guidelines license which will be automatically included on install of this library. Each dependency has a license file that indicates whether the Atlassian Design Guidelines license applies.
Let us know what you think of our components and docs, your feedback is really important for us.
Are you in trouble? Read through our contribution guidelines and raise an issue to us.
FAQs
A tag group controls the layout and alignment for a collection of tags.
The npm package @atlaskit/tag-group receives a total of 3,496 weekly downloads. As such, @atlaskit/tag-group popularity was classified as popular.
We found that @atlaskit/tag-group 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.