Cosmos Kit
Hooks
- useModalTheme

Hook - useModalTheme

If you're using default modal provided by CosmosKit, you might need this hook to get and set modal theme.

Return Type - useModalTheme

properties

NameDescriptionTypeDefault
modalThemecurrently light or dark or system are availableModePreferencelight

methods

NameDescriptionParametersReturn TypeIs Async
setModalTheme-theme: ModePreferencevoidN

Examples

dashboard (opens in a new tab)