Added comment for `extend` flag for custom css classes

I wasted an hour on figuring out why the styles were merging instead of overridden. Apparently there is a flag to ``extend`` styles, but it's not mentioned in the docs here. This fixes this (and adds another comment to make it more consistent).
This commit is contained in:
Marc authored and GitHub committed 2023-04-05 01:57:27 +02:00
1 parent d01650bcc9
commit 2a18924ff5
1 file changed
+4 -1
@@ -248,7 +248,7 @@ You can swich between different variations of your theme with the ["theme" prop]
### Custom CSS classes [#custom-css-classes]
You can use custom CSS classes for the following elements:
`"button"`, `"container"`, `"anchor"`, `"divider"`, `"label"`, `"input"`, `"loader"`, `"message"`.
`"button"`, `"container"`, `"anchor"`, `"divider"`, `"label"`, `"input"`, `"loader"`, `"message"`.
```js title=/src/index.js
import { createClient } from '@supabase/supabase-js'
@@ -260,6 +260,9 @@ const App = () => (
<Auth
supabaseClient={supabase}
appearance={{
// If you want to extend the default styles instead of overriding it, set this to true
extend: false,
// Your custom classes
className: {
anchor: 'my-awesome-anchor',
button: 'my-awesome-button',