🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@dev_imlab/msk-ui

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@dev_imlab/msk-ui

A Library of UI Components and Custom Hooks used in MSK projects.

0.0.3
unpublished
latest
npm
Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

MSK UI

A Library of UI Components and Custom Hooks used in MSK projects.

  • Components
  • Hooks

This Library is implemented with the following Technology Stack.

  • Vite
  • React
  • TypeScript
  • Storybook
  • Tailwind CSS

Components

Avatar

import { Avatar } from '@dev_imlab/msk-ui';

const App = () => {
  return (
    <Avatar
      image={{
        src: 'https://images.unsplash.com/photo-1438761681033-6461ffad8d80?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2340&q=80',
      }}
    />
  );
};

AvatarGroup

import { Avatar, AvatarGroup } from '@dev_imlab/msk-ui';

const App = () => {
  return (
    <AvatarGroup>
      <Avatar
        image={{
          src: 'https://images.unsplash.com/photo-1438761681033-6461ffad8d80?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2340&q=80',
        }}
      />
      <Avatar
        image={{
          src: 'https://images.unsplash.com/photo-1438761681033-6461ffad8d80?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2340&q=80',
        }}
      />
      <Avatar
        image={{
          src: 'https://images.unsplash.com/photo-1438761681033-6461ffad8d80?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2340&q=80',
        }}
      />
    </AvatarGroup>
  );
};

Button

import { Input } from '@dev_imlab/msk-ui';

const App = () => {
  return (
    <Button size='lg' variant='primary'>
      Button
    </Button>
  );
};

ButtonGroup(beta)

Dropdown

import { Dropdown, useDropdown } from '@dev_imlab/msk-ui';

const App = () => {
  const { selectedDropdownItem, handleDropdownSelect } = useDropdown({
    initialState: 'Item 1',
  });

  return (
    <Dropdown>
      <Dropdown.Trigger variant='filled' icon='>'>
        {selectedDropdownItem}
      </Dropdown.Trigger>
      <Dropdown.Menu>
        <Dropdown.Item onDropdownSelect={handleDropdownSelect}>
          Item 1
        </Dropdown.Item>
        <Dropdown.Item onDropdownSelect={handleDropdownSelect}>
          Item 2
        </Dropdown.Item>
        <Dropdown.Item onDropdownSelect={handleDropdownSelect}>
          Item 3
        </Dropdown.Item>
      </Dropdown.Menu>
    </Dropdown>
  );
};

Input

import { Input } from '@dev_imlab/msk-ui';

const App = () => {
  return <Input type='text' variant='box' />;
};

Hooks

useDropdown

import { Dropdown, useDropdown } from '@dev_imlab/msk-ui';

const App = () => {
  const { selectedDropdownItem, handleDropdownSelect } = useDropdown({
    initialState: 'Item 1',
  });

  return (
    <Dropdown>
      <Dropdown.Trigger variant='filled' icon='>'>
        {selectedDropdownItem}
      </Dropdown.Trigger>
      <Dropdown.Menu>
        <Dropdown.Item onDropdownSelect={handleDropdownSelect}>
          Item 1
        </Dropdown.Item>
        <Dropdown.Item onDropdownSelect={handleDropdownSelect}>
          Item 2
        </Dropdown.Item>
        <Dropdown.Item onDropdownSelect={handleDropdownSelect}>
          Item 3
        </Dropdown.Item>
      </Dropdown.Menu>
    </Dropdown>
  );
};

FAQs

Package last updated on 21 Aug 2023

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