This package has been deprecated

Author message:

Please see docs.nacelle.com for up-to-date guidance on building frontend projects powered by Nacelle

@nacelle/react-components
TypeScript icon, indicating that this package has built-in type declarations

8.0.0 • Public • Published

@nacelle/react-hooks

React Components for building Nacelle apps

Install

With NPM

npm i @nacelle/react-components

With Yarn

yarn add @nacelle/react-components

Usage

import React, { FC } from 'react';
import { Button } from '@nacelle/react-components';

type Props = {};

const MyComponent: FC<Props> = () => (
  <div>
    <Button fullWidth>Click Here!</Button>
  </div>
);

export default MyComponent;

Styling

All components use Emotion's CSS object syntax, and can be passed a styles prop that can overwrite any of the pre-defined styles.

import React, { FC } from 'react';
import { Button } from '@nacelle/react-components';
import { CSSObject } from '@emotion/core';

type Props = {};

const customStyles: CSSObject = { backgroundColor: 'seafoamgreen' };

const MyComponent: FC<Props> = () => (
  <div>
    <Button styles={customStyles}>Click Here!</Button>
  </div>
);

export default MyComponent;

License

ISC © getnacelle

Package Sidebar

Install

npm i @nacelle/react-components

Weekly Downloads

342

Version

8.0.0

License

ISC

Unpacked Size

101 kB

Total Files

31

Last publish

Collaborators

  • andrew-nacelle
  • badiolaignacio
  • brianvanderson
  • cbodtorf
  • curbol
  • darrik-moberg
  • dave.king.nacelle
  • dzouras
  • irnoble
  • jeffrichie
  • jongeyer
  • krisq
  • nacelle-bot
  • nacelle-support
  • nwrichmond
  • stuckya