New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gluestack-ui/vstack

Package Overview
Dependencies
Maintainers
16
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gluestack-ui/vstack

A universal headless vstack component for React Native, Next.js & React

  • 0.1.16
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
16
Created
Source

@gluestack-style/vstack

Installation

To use @gluestack-ui/vstack, all you need to do is install the @gluestack-ui/vstack package:

$ yarn add @gluestack-ui/vstack

# or

$ npm i @gluestack-ui/vstack

Usage

VStack organizes items vertically in a layout. Alternatively, you can use Column as an alias for VStack to achieve the same layout. Here's an example how to use this package to create one:

import { Root, Spacer } from '../components/vstack/styled-components';
import { createVStack } from '@gluestack-ui/vstack';
const VStack = createVStack({
  Root,
  Spacer,
});

Customizing the vstack:

Default styling of all these components can be found in the components/core/vstack file. For reference, you can view the source code of the styled vstack components.

// import the styles
import { Root, Spacer } from '../components/vstack/styled-components';

// import the createVStack function
import { createVStack } from '@gluestack-ui/vstack';

// Understanding the API
const VStack = createVStack({
  Root,
  Spacer,
});

// Using the vstack component
export default () => <VStack />;

More guides on how to get started are available here.

Keywords

FAQs

Package last updated on 11 Nov 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc