6.0.5 • Published 2 years ago

astro-in-react v6.0.5

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

Installation

npm i @astrouxds/react

Import and Usage

First, import the css into either your index.js, app.js, or any CSS file you would like.

import '@astrouxds/astro-web-components/dist/astro-web-components/astro-web-components.css'

Next, Import any desired Astro components the same way you would any other React component.

import { RuxProgress } from '@astrouxds/react

You can now use astro-components as regular React components.

import React from 'react';

const MyComp = () => {
    return (
        <div>
            <RuxProgress />
        </div>
    )
}

export default MyComp;

Astro Stencil Components Docs

Docs for all components can be found at our Astro Stencil Storybook, and in our web-components package

Known Issues

  • CSS custom properties for our react-wrapped components are undefined out of the box, thus the necessity for the CSS import.
  • For using checkbox, push button, or switch onRuxchange events, you need to check for the checked prop:
            <RuxSwitch
          value="switch"
          onRuxchange={(e: React.ChangeEvent<HTMLRuxSwitchElement>) =>
            setSwitchVal(e.target.checked ? e.target.value : "")
          }
        />
6.0.5

2 years ago

0.0.8

3 years ago

0.0.71

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.29

3 years ago

0.0.28

3 years ago

0.0.21

3 years ago

0.0.22

3 years ago

0.0.23

3 years ago

0.0.24

3 years ago

0.0.25

3 years ago

0.0.26

3 years ago

0.0.27

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago