mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 11:55:05 +03:00
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:
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',
|
||||
|
||||
Reference in new issue
Block a user