8.0.0 • Published 2 years ago

@nacelle/react-components v8.0.0

Weekly downloads
226
License
ISC
Repository
github
Last release
2 years ago

@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

8.0.0

2 years ago

6.1.0

2 years ago

6.0.2

2 years ago

7.0.0

2 years ago

6.0.1

2 years ago

6.0.0

3 years ago

5.0.0

3 years ago

4.0.0

3 years ago

3.0.0

3 years ago

2.10.1

3 years ago

2.10.0

3 years ago

2.9.0

3 years ago

2.8.0

4 years ago

2.7.0

4 years ago

2.7.1

4 years ago

2.6.0

4 years ago

2.5.1

4 years ago

2.3.0

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago