Hook - useModalTheme
If you're using default modal provided by CosmosKit, you might need this hook to get and set modal theme.
- required provider: ChainProvider from
@cosmos-kit/react
Return Type - useModalTheme
properties
Name | Description | Type | Default |
---|---|---|---|
modalTheme | currently light or dark or system are available | ModePreference | light |
methods
Name | Description | Parameters | Return Type | Is Async |
---|---|---|---|---|
setModalTheme | - | theme: ModePreference | void | N |