Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mojito-inc/core-ui

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mojito-inc/core-ui

Mojito UI component

  • 1.0.1-beta.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-56.25%
Maintainers
2
Weekly downloads
 
Created
Source

☁️ Mojito Modules - Core UI



👨‍💻 React components for the Mojito Platform, Reference App and third-party projects, including Mojito's Core UI

Version: 1.0.0


You can install this project with one of these commands:

npm install --save @mojito-inc/core-ui



yarn add @mojito-inc/core-ui

Once the package is installed, you can import the library using import;

  import { CoreUIThemeProvider } from "@mojitoinc/core-ui";
  import { createTheme } from "@mui/material/styles";

  const theme = createTheme({
    palette: {
      primary: {
        main: "#FDCC35",
      },
      secondary: {
        main: "#356045",
      },
      background: {
        default: "#000",
      },
      text: {
        primary: "#000",
      },
      grey: {
        100: "#868b93",
      },
      divider: "#fff",
    },
  });

  <CoreUIThemeProvider theme={ theme }>
      <Component {...pageProps} />
  </CoreUIThemeProvider>

Accordion

  import { Accordion } from "@mojitoinc/core-ui";

  <Accordion
    open=<open>
    label=<label>
    children=<children>
    labelStyle=<labelStyle>
    collapseIcon=<collapseIcon>
    expandIcon=<expandIcon>
  />
ParamtypeRequiredDefaultDescription
openbooleanfalse
labelstring
childrenJSX.Element
labelStyleSxProps
collapseIconJSX.ElementRemoveIcon
expandIconJSX.ElementAddIcon

Breadcrumbs

import { Breadcrumbs, BreadcrumbItem } from "@mojitoinc/core-ui";

<Breadcrumbs 
    list=<BreadcrumbItem[]> 
    selectedValue=<selectedValue>
    separator=<separator>
    separatorStyle=<separatorStyle>
    itemStyle=<itemStyle>
    itemHighlightedStyle=<itemHighlightedStyle>
    />

ParamtypeRequiredDefaultDescription
listobject[]BreadcrumbItem
selectedValuestring
separatorJSX.ElementNavigateNextIcon
separatorStyleSxProps{ fontSize: 13 }
itemStyleSxProps{ fontWeight: 500, fontSize: '12px' }
itemHighlightedStyleSxProps{ fontWeight: 700, fontSize: '12px', color: '#000' }
interface
BreadcrumbItem
ParamtypeRequiredDescription
labelstring
valuestring

TextInput

  import { TextInput } from "@mojitoinc/core-ui";

  <TextInput
    placeholder=<placeholder>
    value=<value>
    InputPropsStyle=<InputPropsStyle>
    sx=<sx>
    error=<error>
    type=<type>
    disabled=<disabled>
    autoFocus=<autoFocus>
    onChange=<onChange>
    />
ParamtypeRequiredDefaultDescription
placeholderstring
valuestring
InputPropsStyleSxProps
sxSxProps
errorstring
typestringtext
disabledbooleanfalse
autoFocusbooleanfalse
inputRefReact.Ref
onChangeevent(event: React.ChangeEvent)

BaseModal

  import { BaseModal } from "@mojitoinc/core-ui";

  <BaseModal
    title=<title>
    content=<content>
    children<children>
    titleStyle=<titleStyle>
    contentStyle=<contentStyle>
    />
ParamtypeRequiredDefaultDescription
titlestring
contentstring
childrenJSX.Element
titleStyleSxProps
contentStyleSxProps

TabSwitcher

  import { TabSwitcher, TabPanel } from "@mojitoinc/core-ui";

  <TabSwitcher 
    value=<value> 
    children=<children>
  />

  <TabPanel 
    id=<id>
    children=<children>
  />

  <TabSwitcher value='one'>
    <>
      <TabPanel id='one'>
        <p>one</p>
      </TabPanel>
      <TabPanel id='two'>
        <p>two</p>
      </TabPanel>
    </>
  </TabSwitcher>
TabSwitcher
ParamtypeRequiredDefaultDescription
valuestring
childrenJSX.Element
TabPanel
ParamtypeRequiredDefaultDescription
idstring
childrenJSX.Element

Trobuleshoot

yarn storybook ERR_OSSL_EVP_UNSUPPORTED

export NODE_OPTIONS=--openssl-legacy-provider

Keywords

FAQs

Package last updated on 14 Jul 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

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