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

reference-components

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reference-components

Ready-to-style functional components for React applications and custom component libraries.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Actions Status Version codecov Size Vulnerabilities License

Reference Components

Ready-to-style functional components for React applications and custom component libraries.

  • style however you want
  • optimized for low bundle size
  • solid base for creating your own component library
  • React 17+
  • Heavily tested

Components

Styling

  • with SCSS/LESS or other preprocessors
.icon-class {
  padding: 4px;
}
<Button classNames={{
  icon: 'icon-class'
}}>
  Hello
</Button>

Each component has its own list of classNames.

  • with Tailwind
<Button classNames={{
  icon: 'bg-blue p-4'
}}>
  Hello
</Button>
  • with classic CSS classes
.ref-button {
  color: red;
}
<Button>Hello</Button>

Each component has its own classes prefixed with ref-.

Themes

Use ThemeProvider to leverage dynamic theming.

import { ThemeProvider, ITheme } from 'reference-components'

const theme: ITheme = {
  Button: {
    borderRadius: '3px'
  }
}

root.render(
  <ThemeProvider theme={theme}>
    <App  />
  </ThemeProvider>
)

Development

Start local development server with Ladle

npm start

Project under active development, new components and features are being added. Contributions are always welcome.

License

MIT License. See LICENSE file for more details.

FAQs

Package last updated on 07 Nov 2022

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