We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This would be a great addition to allow developers to adapt ResponseRenderer implementations to take advantage of the theme in use.
ResponseRenderer
For instance, with such exposure, one can do something like:
const RTaiResponseRenderer: ResponseRenderer<string> = (props) => { const isDarkTheme = props.theme === 'dark'; const styles = { container: { padding: '20px', backgroundColor: isDarkTheme ? '#1e1e1e' : '#ffffff', color: isDarkTheme ? '#ffffff' : '#000000', }, content: { marginBottom: '20px', backgroundColor: isDarkTheme ? '#ffffff' : '#1e1e1e', color: isDarkTheme ? '#000000' : '#ffffff', }, ... }; return ( <div style={styles.container}> <div style={styles.content}> <Markdown>{props.content}</Markdown> </div> ...other stuff </div> ); };
The text was updated successfully, but these errors were encountered:
Nice suggestion @woozyking I had that use-case as well, while implementing an app that uses NLUX We'll prioritize it
Sorry, something went wrong.
No branches or pull requests
This would be a great addition to allow developers to adapt
ResponseRenderer
implementations to take advantage of the theme in use.For instance, with such exposure, one can do something like:
The text was updated successfully, but these errors were encountered: