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

framerxcomponents

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

framerxcomponents

Stencil Component Starter

  • 2.1.7
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Built With Stencil

Framer X / StencilJS Components

This repository is an example of a few components based on the framer-bridge-starter-kit component library, but built entirely in StencilJS Web Components.

These components can be used within any Web Framework, but were designed to illustrate the workflow between maintaining a Web Component based Design System in Framer X.


Components

This package contains 4 main components:

<my-button />

PropertyTypeDescriptionDefault
textstringButton textDownload App
fluidbooleanWidth of buttontrue
disabledbooleanButton disabled statefalse
kindenumButton Kinddefault

<my-input />

PropertyTypeDescriptionDefault
valuestringInput value
placeholderstringInput placeholderEmail
disabledbooleanInput disabled statefalse
errorbooleanInput error statefalse

<my-toggle />

PropertyTypeDescriptionDefault
disabledbooleanToggle disabled statefalse
onbooleanToggle on statefalse

<my-tooltip />

PropertyTypeDescriptionDefault
arrowenumArrow directionleft
textstringTooltip textComponent
errorbooleanTooltip error statefalse

Using Components

Follow the steps below to use them in your project.

Script Tag in HTML

  1. Put this tag <script src='https://unpkg.com/framerxcomponents/dist/framerxcomponents.js'></script> in the head of your index.html. You can use a different version by specifiying the verion following this doc.
  2. Use the custom elements listed above anywhere in your template, JSX, HTML, etc.

Framer X

Check out this starter kit to learn more about how these components are maintained in Framer X, and see a working example of these living in a Framer X project.

Framer X uses React under the hood, but that doesn't mean you can't use you custom Web Components. The easiest way to include your components in Framer X is to add the script tag thorugh a custom React Hook. If you're new to React, a good place to start is here.

  1. Add this Gist to the code folder of your Framer X Project.
  2. Add the custom hook + script URL to your component file. The script URL for these components is "https://unpkg.com/framerxcomponents/dist/framerxcomponents.js".
  3. Use the custom elements in the render body of the Component.

Node_Modules

  1. Run npm install framerxcomponents --save
  2. Import the StencilJS component into the file you wish to use it in by adding import my-button from "framerxcomponents" at the top.
  3. Use the custom elements listed above anywhere in your template, JSX, HTML, etc.

FAQs

Package last updated on 10 Jul 2019

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