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

uxcore-layout

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uxcore-layout

uxcore-layout ui component for react

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
decreased by-50%
Maintainers
4
Weekly downloads
 
Created
Source

uxcore-layout

NPM version build status Test Coverage Dependency Status devDependency Status NPM downloads

Sauce Test Status

setup develop environment
$ git clone https://github.com/uxcore/uxcore-layout
$ cd uxcore-layout
$ npm install
$ npm start

Usage

let Layout = require('../src');
let {Left, Right} = Layout;
let classnames = require('classnames');

class Demo extends React.Component {
    constructor(props) {
        super(props);
    }

    render() {
        return <div>
            <p>左侧自适应,右侧固定</p>
            <Layout className="layoutDemo">
                <Left adaptive={true} className="left"></Left>
                <Right width={190} className="right"></Right>
            </Layout>
            <p>右侧自适应,左侧固定</p>
            <Layout className="layoutDemo">
                <Left width={190} className="left"></Left>
                <Right adaptive={true} className="right"></Right>
            </Layout>
            <p>左右都固定</p>
            <Layout className="layoutDemo">
                <Left width={500} className="left"></Left>
                <Right width={500} className="right"></Right>
            </Layout>
        </div>
        
    }
}

module.exports = Demo;

Props

配置项类型必填默认值功能/备注
classNamestringoptional""加入额外的类名,在使用 kuma 的基础上进行适当的定制时会用得到

子组件

Left/Right

配置项类型必填默认值功能/备注
classNamestringoptional加入额外的类名,在使用 kuma 的基础上进行适当的定制时会用得到
widthnumberoptional500布局块的宽度,仅在定宽时起作用
adaptivebooleanoptional是否为自适应,未设定 adaptive=true 的一侧,则为定宽,不可两者皆为自适应

Keywords

FAQs

Package last updated on 12 Sep 2018

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