
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@gluestack-ui/themed
Advanced tools
gluestack-ui is a universal UI library that provides optionally styled and accessible components. These components are designed for easy integration into applications developed with React and React Native.
You can find detailed documentation for each component, including a list of props and examples, in https://v1.gluestack.io/ui/docs website.
Dynamic styles: Using JavaScript expressions, you can create dynamic styles that change based on the state of your components.
Server-side rendering (SSR) support: This allows you to use the same styles on the server and the client, making it easy to implement SSR for your React applications..
Responsive styling:: This allows you to easily create responsive styles that adapt to different screen sizes and resolutions.
Theme support: You can easily define and switch between different themes for your application, allowing for a consistent design across all pages.
Frequent updates: We are constantly working on improving the library and adding new components. Follow us on GitHub to stay up-to-date on the latest releases and features.
Community support: Need help using the library or have a suggestion for a new feature? Join our Discord channel to connect with the community and get support.
To use gluestack-ui components, all you need to install @gluestack-ui/themed
and its dependencies
npm i @gluestack-ui/themed @gluestack-style/react react-native-svg@13.4.0
JavaScript, React, React Native, Styled System
To use the gluestack-ui
in your project, follow these steps:
GluestackUIProvider
provided by
@gluestack-ui/themed.import { GluestackUIProvider } from '@gluestack-ui/themed';
import { config } from '@gluestack-ui/config';
// Write this code snippet at the root of your application
function App({ children }) {
return <GluestackUIProvider config={config}>{children}</GluestackUIProvider>;
}
@gluestack-style/react
to style your components by using the styled
function provided by the library. For example:import { Button, ButtonText } from '@gluestack-ui/themed';
const StyledButton = styled(
Pressable,
{
bg: '$red500',
p: '$3',
},
{}
);
const StyledButtonText = styled(Text, {}, {});
export const App = () => {
return (
<Button>
<ButtonText>Awesome Button!</ButtonText>
</Button>
);
};
More guides on how to get started are available here.
FAQs
A universal themed components for React Native, Next.js & React
The npm package @gluestack-ui/themed receives a total of 18,983 weekly downloads. As such, @gluestack-ui/themed popularity was classified as popular.
We found that @gluestack-ui/themed demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.