@equinor/fusion-react-ag-grid-styles
TypeScript icon, indicating that this package has built-in type declarations

31.2.1 • Public • Published

AG Grid Styles

Storybook

Install

npm install @equinor/fusion-react-ag-grid-styles

About

The hook adds the theme alpine-fusion to your ag-grid instance without adding global stylesheet to the portal. It sets up the required variables and classnames for use in your component in a scoped naming scheme.

You do not need any other styles from the ag-grid package or other fusion packages.

Usage

  • Add the root item from the hook to set up required variables in your scope.

  • And set the theme name to ag-theme-alpine-fusion

import AgGridReact from '@ag-grid-community/core';
import useStyles from '@equinor/fusion-react-ag-grid-styles';

const MyComponent = (): JSX.Element => {
  const styles = useStyles();
  
  return (
    <div className={ styles.root }>
      <div className='ag-theme-alpine-fusion'>
        <AgGridReact { ...props } />
      </div>
    </div>
  );
};

Package Sidebar

Install

npm i @equinor/fusion-react-ag-grid-styles

Weekly Downloads

1,233

Version

31.2.1

License

ISC

Unpacked Size

392 kB

Total Files

12

Last publish

Collaborators

  • gustav-eikaas
  • eslsa
  • martinforre
  • _odin_