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.
@nft/components
Advanced tools
List of components to use in any application. These components can be customized with a ChakraUI-based theme.
List of components to use in any application. These components can be customized with a ChakraUI-based theme.
npm i @nft/components
For more information about the different components available and how to use them, check the storybook https://storybook-components-liteflow.vercel.app/
To get started with the components library you need to ensure that your application adds wraps the LiteflowNFTApp
components.
Here is an example with a next application.
import LiteflowNFTApp from '@nft/components'
import { InjectedConnector } from '@web3-react/injected-connector'
import type { AppProps } from 'next/app'
import { theme } from '../styles/theme'
function MyApp({ Component, pageProps }: AppProps): JSX.Element {
return (
<LiteflowNFTApp
ssr={typeof window === 'undefined'}
endpointUri={'YOUR_LITEFLOW_GRAPHQL_ENDPOINT'}
cache={pageProps[APOLLO_STATE_PROP_NAME]}
user={pageProps.user}
connectors={{
injected: new InjectedConnector({
supportedChainIds: [1],
}),
}}
theme={theme}
>
<Component {...pageProps} />
</LiteflowNFTApp>
)
}
export default MyApp
Once this is done you can include any components in your different pages. Example:
import { TokenCard } from '@nft/components'
export default function Home() {
return (
<TokenCard
asset={{
id: 'xxx',
image: 'https://xxx',
name: 'xxx',
standard: 'ERC721',
unlockedContent: undefined,
animationUrl: undefined,
}}
creator={{
address: '0x',
name: 'xxx',
image: 'https://xxx',
verified: undefined,
}}
auction={undefined}
hasMultiCurrency={false}
numberOfSales={0}
sale={undefined}
/>
)
}
FAQs
List of components to use in any application. These components can be customized with a ChakraUI-based theme.
We found that @nft/components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.