New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

opolis-components

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opolis-components

Reusable TypeScript/React/Tailwind components for building web apps

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

opolis-components

Reusable TypeScript/React/Tailwind components for building web apps

NPM JavaScript Style Guide

Install

yarn add opolis-components

or

npm install --save opolis-components

Usage

import { Header, FormRow } from "opolis-components";
import 'opolis-components/dist/index.css'

const HeaderLinks = () => (
  <nav>
    <ul className='flex text-white gap-x-2'>
      {['link 1', 'link 2', 'link 3'].map((link, index) => (
        <li key={`link-${index}`}>
          <Link to='javascript:void(0)' title={link}>
            {link}
          </Link>
        </li>
      ))}
    </ul>
  </nav>
)

const options = [
    {
      VALUE: '',
      LABEL: 'Select…'
    },
    {
      LABEL: 'Option 1',
      VALUE: 'Option 1'
    },
    {
      LABEL: 'Option 2',
      VALUE: 'Option 2'
    }
  ]

export const HeaderTest = () => (
  <>
    <Header
      backgroundColor='orange'
      headerLinks={<HeaderLinks />}
    />

    <fieldset>
      <FormRow type="text" labelText="My Label" />
      <FormRow
        type='select'
        options={options}
        fieldName='field1'
        labelText='Choose an option'
      />
    </fieldset>
  </>

License

MIT © antibland

FAQs

Package last updated on 25 Dec 2021

Did you know?

Socket

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.

Install

Related posts