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

@hey-mirror/base

Package Overview
Dependencies
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hey-mirror/base

## <HeyMirror />

  • 1.0.0-alpha.182
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@hey-mirror/base

PropDefaultTypeDescription
aspectRatio9/16numberDefines the wrapper aspect ratil. Easiest to do as a fraction: width / height.
children--ReactNodeEverything you want for your HeyMirror!
className""stringUsed for styling the root component
theme(see below)CSSPropertiesProvide consistent tokens for modules to use!

Theme

AttributeDefault
backgroundColor'black'
color'white'
unit24
elementTransitionDuration'350ms'
pageTransitionDuration'450ms'
transitionTimingFunction'ease-in-out'

HeyMirror provides a theme option to maintain key aspects of UI behavior consistent throughout a user's experience.

Setting a theme is optional (and all of the properties are, too!). We've provided sensible defaults.

backgroundColor and color will be set on your HeyMirror. Everything else is there for you or module developers to pull into your implementations, so everything feels a bit more coherent.

pageTransitionDuration should be used when more than 20% of the application is changing. Otherwise? Use elementTransitionDuration. Our in-house example is that layer transitions such as the persistent layer fading (while a module is active) uses pageTransitionDuration. Animating a piece of a module would probably use elementTransitionDuration.

All of these can be overwritten for individual pieces of modules, but we recommend using them as much as you can. We're all in this to make a good, easy-to-use, predictable HeyMirror experience. Coherent interfaces are pretty darn important.

FAQs

Package last updated on 25 Mar 2023

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