fortnite-components
Version:
A library of fortnite components
88 lines (53 loc) • 1.74 kB
Markdown
# Fortnite's Components
> A library of fortnite's components
[](https://www.npmjs.com/package/fortnite-components)
## Install
```bash
NPM: npm install fortnite-components --save-dev
```
```bash
YARN: yarn add fortnite-components --dev
```
## Usage
it's easy to use, just import the components you need
```tsx
import React from 'react'
import { StoreCard } from 'fortnite-components'
const App = () => {
return <StoreCard name='Safari' />
}
```
## Components
- StoreCard
- LockerCard
- CharacterCard
- FishCard
- BattlepassCard
- EventCard
- AchievementCard
- PresetCard
You can see the components in my Storybook
[Fortnite Components Storybook](https://fortnite-components.vercel.app/)
## Customizable
The components have a variety of props, so the component can be very customizable
#### for example
```tsx
import { FishCard } from 'fortnite-components'
```
This component contain these props
**Number** `Fish number`
**Image** `Fish image`
**Stars** `Fish stars`
**Size** `Fish size`
**Alert** `Indicates if the fish is new`
**Unknown** `Indicates if the fish exists but nothing is known about it`
**None** `Indicates if nothing is known about the fish`
**Featured** `Indicates whether the fish has protruded in any way`
**Text** `It's the featured text`
**onClick** `function that is executed when you click`
#### Preview of the component

## License
MIT © [EddsonRT](https://github.com/EddsonRT/fortnite-components/blob/main/LICENSE)
## Help me
Use code **EddsonRT** in the Item Shop of Fortnite