Skip to content

Prevent default styles from overwriting my CSS #397

Answered by jrgarciadev
elgeneee asked this question in Help
Discussion options

You must be logged in to vote

Hey @elgeneee you can disable the NextUI's base styles using this prop disableBaseline in the NextUIProvider
https://nextui.org/docs/guide/getting-started#nextuiprovider-props

e.g

// 1. import `NextUIProvider` component
import { NextUIProvider } from '@nextui-org/react';

function MyApp({ Component, pageProps }) {
  return (
    // 2. Use at the root of your app
    <NextUIProvider disableBaseline>
      <Component {...pageProps} />
    </NextUIProvider>
  );
}

export default MyApp;

Hope it helps you 🙌🏻

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@elgeneee
Comment options

Answer selected by jrgarciadev
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
6 participants