8.0.0 • Published 4 years ago
@nacelle/react-components v8.0.0
@nacelle/react-hooks
React Components for building Nacelle apps
Install
With NPM
npm i @nacelle/react-componentsWith Yarn
yarn add @nacelle/react-componentsUsage
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
8.0.0
4 years ago
6.1.0
4 years ago
6.0.2
4 years ago
7.0.0
4 years ago
6.0.1
4 years ago
6.0.0
4 years ago
5.0.0
4 years ago
4.0.0
4 years ago
3.0.0
5 years ago
2.10.1
5 years ago
2.10.0
5 years ago
2.9.0
5 years ago
2.8.0
5 years ago
2.7.0
5 years ago
2.7.1
5 years ago
2.6.0
5 years ago
2.5.1
5 years ago
2.3.0
5 years ago
2.2.1
5 years ago
2.2.0
5 years ago
2.1.2
5 years ago
2.1.1
5 years ago