0.4.3 • Published 5 months ago

m3-react v0.4.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

M3 React

This package ws designed to create React components that follow Google's Material 3 design pattern.

Getting Started

Components in this library should be used primarily for stying, so you don't have to create new components each time UI standards are changed. To get started using them, you first need to import the styles and include them in your app:

// styles/base.scss
@import '~m3-react/dist/esm/styles/m3';
// App.tsx
import './styles/base.scss'

Then, you can simply import any of the components and and use them in your application:

// HelloWorld.tsx
import { Button, ButtonVariants } from 'm3-react'


const MyApp = (props) => {

  return (
      <Button
        type={ButtonVariants.ButtonStyles.filled}
        text="Cilck Me!!"
        onClick={() => console.log('Hello World!!')}
      />
  )
}

Instructions on how to use each component can be found below.

Components

I am constantly working to expand our usable components, but thus far the list includes:

  • Button
  • Dialog
  • Drawer
  • DrawerItem
  • Icon
  • LoadingSpinner
  • SideNav
  • SideNav
  • SideNavItem
  • NavItem
  • TextInput
  • TopNav
  • TopNavItem

All components have default styling, and uses SCSS for those styles. To use the components in this project, you need to import the styles and include them in your app:

// styles/base.scss
@import '~m3-react/dist/esm/styles/m3';
// App.tsx
import './styles/base.scss'
0.4.3

5 months ago

0.4.2

5 months ago

0.4.1

7 months ago

0.4.0

8 months ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

2 years ago