Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mireco

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mireco

MIcro REact COmponents - extensible library for interfaces with no heavy deps

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.3K
increased by22.88%
Maintainers
1
Weekly downloads
 
Created
Source

mireco

Mireco is an extensible library for interfaces with no heavy dependencies (especially css)

Design philosophy

All Mireco components should be designed with the following guidelines:

  • No external static file requirements - all images are inline svg, only use native fonts
  • All components are stateless where possible - eg. an input with a value prop will not have a value state, but may have a dropdownOpen state
  • Adhere to strict html components where reasonable for accessibilty
  • Minimal html element hierarchy eg. no enormous chains of <div>
  • Everything should still be usable without any css
  • All input props take the form of a singular value and onChange
  • Input's onChange is a function callback with the new value as an argument (consumers do no direct reading from dom elements with refs)
  • Inputs should still render a basic html form value
  • All components should work by default on any platform (mobile, desktop)
  • All css selectors are namespaced to avoid clashes
  • Use native browser focus, and support keyboard navigation with js events

Non battle-tested guidelines:

  • Existing html properties such as style and className should be passed through - with prefixes where there are multiple injection points eg. containerStyle and inputStyle
  • All inputs are rendered as inline-block by default, can be switched to block mode to fit width (so resizing is done by wrapping in a fixed width container)

Components

Form inputs:

  • Button
  • Text
  • Date
  • DateRange
  • Datetime
  • DatetimeRange
  • Duration
  • Select

Layout:

  • Label
  • Modal

FAQs

Package last updated on 07 Aug 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc