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

@gitlab/ui

Package Overview
Dependencies
Maintainers
0
Versions
1726
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gitlab/ui

GitLab UI Components

  • 109.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created

What is @gitlab/ui?

@gitlab/ui is a comprehensive UI component library designed to be used with GitLab projects. It provides a wide range of reusable and customizable components that adhere to GitLab's design guidelines, making it easier to build consistent and visually appealing user interfaces.

What are @gitlab/ui's main functionalities?

Buttons

The @gitlab/ui package provides various button components with different styles and variants. This example demonstrates how to use a primary button.

<template>
  <gl-button variant="primary">Primary Button</gl-button>
</template>

<script>
import { GlButton } from '@gitlab/ui';

export default {
  components: {
    GlButton
  }
};
</script>

Alerts

The package includes alert components for displaying different types of messages. This example shows a dismissible success alert.

<template>
  <gl-alert variant="success" dismissible>
    This is a success alert!
  </gl-alert>
</template>

<script>
import { GlAlert } from '@gitlab/ui';

export default {
  components: {
    GlAlert
  }
};
</script>

Modals

The @gitlab/ui package provides modal components for creating dialog boxes. This example demonstrates a modal with a title, body, and footer.

<template>
  <gl-modal :visible="isVisible" @close="isVisible = false">
    <template #title>
      Modal Title
    </template>
    <template #body>
      This is the modal body.
    </template>
    <template #footer>
      <gl-button @click="isVisible = false">Close</gl-button>
    </template>
  </gl-modal>
</template>

<script>
import { GlModal, GlButton } from '@gitlab/ui';

export default {
  components: {
    GlModal,
    GlButton
  },
  data() {
    return {
      isVisible: false
    };
  }
};
</script>

Other packages similar to @gitlab/ui

FAQs

Package last updated on 03 Mar 2025

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