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.
anchor-ui
Advanced tools
UI kit for chat engines with React
Install from npm
<Avatar />
used for rendering a user's profile image.
Props:
Name | Type | Required | Default | Description |
---|---|---|---|---|
image | String | Yes | Path to user's profile image | |
style | Object | No | {} | Override the styles of the root element |
<Badge />
used for notification counter.
Props:
Name | Type | Required | Default | Description |
---|---|---|---|---|
content | String, Number, Node | Yes | Content to be rendered | |
style | Object | No | {} | Override the styles of the root element |
<Button />
Props:
Name | Type | Required | Default | Description |
---|---|---|---|---|
children | Element | Yes | Button content | |
iconButton | Boolean | No | false | Switches between icon-button and normal button |
onClick | Function | Yes | Button onClick function | |
style | Object | No | {} | Override the styles of the root element |
<ChannelHeader />
a channel's header containing the channel name
Props:
Name | Type | Required | Default | Description |
---|---|---|---|---|
name | String | Yes | Header content | |
style | Object | No | {} | Override the styles of the root element |
headerTextStyle | Object | No | {} | Override the styles of the text element |
<EmptyState />
used for empty states
Props:
Name | Type | Required | Default | Description |
---|---|---|---|---|
headerText | String | Yes | Header text | |
bodyText | String | Yes | Body text | |
button | Node | No | {} | Render a call to action button |
style | Object | No | {} | Override the styles of the root element |
headerStyle | Object | No | {} | Override the styles of the header text |
bodyStyle | Object | No | {} | Override the styles of the body text |
<List />
Props:
Name | Type | Required | Default | Description |
---|---|---|---|---|
children | Node | Yes | List content | |
style | Object | No | {} | Override the styles of the root element |
<ListItem />
Props:
Name | Type | Required | Default | Description |
---|---|---|---|---|
primaryText | String | Yes | The list item's primary text | |
secondaryText | String | Yes | The list item's secondary text | |
active | Boolean | No | false | Add active styles to ListItem |
onClick | Function | Yes | Click function for the root element | |
style | Object | No | {} | Override the styles of the root element |
primaryTextStyle | Object | No | {} | Override the styles of the primaryText element |
secondaryTextStyle | Object | No | {} | Override the styles of the secondaryText element |
<Message />
Props:
Name | Type | Required | Default | Description |
---|---|---|---|---|
message | Object | Yes | Mesage object containing: body, createdAt, username | |
message.body | String | Yes | The message's body text | |
message.createdAt | String, Date | Yes | Time when the message was created | |
message.username | String | Yes | The sender's username | |
timeFormat | String | No | 'HH:mm' | The format in which to display message.createdAt |
avatar | String | No | '' | Path to the user's profile image, will render if supplied |
myMessage | Boolean | No | false | Flag used to change message styles, set to true if the message belongs to the current user |
style | Object | No | {} | Override the styles of the root element |
messageBodyStyle | Object | No | {} | Override the styles of the body element |
messageHeaderStyle | Object | No | {} | Override the styles of the header element |
messageTimeStyle | Object | No | {} | Override the styles of the time element |
<MessageInput />
text input for message
Props:
Name | Type | Required | Default | Description |
---|---|---|---|---|
value | String | Yes | The list items primary text | |
placeholder | String | Yes | The list items primary text | |
onChange | Function | Yes | Change the input's value | |
sendMessage | Function | Yes | Send a message | |
style | Object | No | {} | Override the styles of the root element |
inputStyle | Object | No | {} | Override the styles of the input element |
maxLength | Number | No | 500 | The input's max length |
leftButton | Node | No | null | A button for the left side of the input |
<ProfileCard />
used for rendering a user's profile details.
Props:
Name | Type | Required | Default | Description |
---|---|---|---|---|
username | String | Yes | The user's username | |
avatar | String | Yes | Path to the user's profile image, will render if supplied | |
style | Object | No | {} | Override the styles of the root element |
Install node_modules
used in ./src
:
$ npm i
Compile ./src
with Babel:
$ npm run compile
Install node_modules
used in ./examples
:
$ cd examples && npm i
To watch for changes in ./src
run:
$ npm run watch
Babel will compile ./src
on changes.
To start the webpack server run:
$ cd examples && npm run start
Webpack wil compile on changes in ./examples/src
.
This project is licensed under the terms of the MIT license.
v1.2.3 (2017-01-12)
Merged pull requests:
FAQs
React Component UI Kit
The npm package anchor-ui receives a total of 25 weekly downloads. As such, anchor-ui popularity was classified as not popular.
We found that anchor-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.