1.0.1 • Published 10 months ago

react-ninetyeight v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

React-NinetyEight

Simple Windows 98 themed draggable window react component.

Adding the package to your project

npm i react-ninetyeight

Creating a simple window

import reactLogo from './assets/react.svg'
import Window98 from 'react-ninetyeight'

<Window98
title="Playing a gif!"
width="20vw"
icon={reactLogo}
draggable
actions={['minimize', 'close']}
options={['Lain', 'Settings']}
content={<><img style={{width: "450px", height: "100%"}}src="https://media.tenor.com/v-d5E2Xnv_sAAAAS/lain-serial-experiments-lain.gif"></img></>}
/>

ezgif com-video-to-gif

Attributes

attributeAccepted Values
widthAny size attribute, like px, vw, or %.
titleString value.
iconany image directory or url.
colorFirst color value for the gradient background of the title, set to 'darkBlue' if empty.
color2Second color value for the gradient background of the title, set to 'royalBlue' if empty.
draggableboolean, set to false if empty.
actionsCan be empty or array with any of the following: 'minimize', 'maximize', 'close' or 'question'.
optionsEmpty or array with any string values.
contentAny html content can be placed inside of curly brackets ({<></>}).
1.0.1

10 months ago

1.0.0

10 months ago