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

@iunigo/ui-kit

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iunigo/ui-kit

``` yarn add @iunigo/ui-kit ```

  • 1.0.16
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-82.35%
Maintainers
4
Weekly downloads
 
Created
Source

Setup

yarn add @iunigo/ui-kit

Use

import { ThemeProvider } from "@iunigo/ui-kit";

export default () => (
  <ThemeProvider>
    <MyApp />
  </ThemeProvider>
)


ThemeProvider:ReactComponent

Inject the theme using Material and styled-componentes ThemeProviders. It uses the mainTheme

PropTypeDefault
themeValid theme objectmainTheme

mainTheme:Object

Default theme.


useTheme: Hook

Access to the theme using a hook.


Text(Typography):ReactComponent

Print text.

PropTypeDefault
variantEnum[h1 | h2 | h3 | h4 | h5 | h6 |
body1 | body2 | button | caption | overline]
""
boldbooleanfalse
......More props can be checked here

Responsivetext(Typography):ReactComponent

Same as Text but it allow to indicate a new size for any breakpoint.

PropTypeDefault
xs[h1 | h2 | h3 | h4 | h5 | h6 |
body1 | body2 | button | caption | overline]
""
sm[h1 | h2 | h3 | h4 | h5 | h6 |
body1 | body2 | button | caption | overline]
""
md[h1 | h2 | h3 | h4 | h5 | h6 |
body1 | body2 | button | caption | overline]
""
lg[h1 | h2 | h3 | h4 | h5 | h6 |
body1 | body2 | button | caption | overline]
""
xl[h1 | h2 | h3 | h4 | h5 | h6 |
body1 | body2 | button | caption | overline]
""

Button:ReactComponent

PropTypeDefault
variantEnum[contained | outlined | Text]contained
loadingbooleanfalse
......More props can be checked here

FlatButton:ReactComponent

PropTypeDefault
......More props can be checked here

Grid:ReactComponent

PropTypeDefault
......You can check more props here

GridContainer:ReactComponent

An alias for <Grid container>with the default breakpoints and max-width rules.

PropTypeDefault
......You can check more props here
import { GridContainer, Grid } from "@iunigo/ui-kit";

export default () => (
  <GridContainer spacing={3}>
    {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(n => (
      <Grid item xs={6} sm={1} md={1}>
        <span>
          Content
        </span>
      </Grid>
    ))}
  </GridContainer>
)


withNextSSR:HOC

Wrap _document in order to inject styles in next js ssr.

import Document, { Html, Head, Main, NextScript } from 'next/document'
import { withNextSSR } from "@iunigo/ui-kit";

class MyDocument extends Document {
  static async getInitialProps(ctx) {
    const initialProps = await Document.getInitialProps(ctx)
    return { ...initialProps }
  }

  render() {
    return (
      <Html>
        <Head>
          <link rel="stylesheet" href="/static/fonts/gt-walsheim/styles.css"/>
        </Head>
        <body>
          <Main />
          <NextScript />
        </body>
      </Html>
    )
  }
}

// Wrap the document
export default withNextSSR(MyDocument)

FAQs

Package last updated on 20 Aug 2019

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