All Projects → cjdev → visual-stack

cjdev / visual-stack

Licence: MIT license
CJ's UI Component Library

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to visual-stack

sha-el-design
React components for easier customization and smooth development flow.
Stars: ✭ 33 (+120%)
Mutual labels:  ui-kit
JustUiKit
iOS UI Kit With Android-Style Tools. JustUiKit contains JustLinearLayout, JustFrameLayout and so on. It is designed to make Android developers build iOS UI easily. Also for iOS developers, it provides a new way to build UI.
Stars: ✭ 35 (+133.33%)
Mutual labels:  ui-kit
kahi-ui
Straight-forward Svelte UI for the Web
Stars: ✭ 169 (+1026.67%)
Mutual labels:  ui-kit
impact-design-system
Kick-Start Your Development With An Awesome Design System carefully designed for your online business showcase. Joint project by Creative Tim and Themesberg.
Stars: ✭ 114 (+660%)
Mutual labels:  ui-kit
notus-angular
Notus Angular: Free Tailwind CSS UI Kit and Admin
Stars: ✭ 148 (+886.67%)
Mutual labels:  ui-kit
kikstart-ui
🎀 Set of ready to use declarative Angular UI components.
Stars: ✭ 25 (+66.67%)
Mutual labels:  ui-kit
design-systems
A list of famous design systems, design languages and guidelines
Stars: ✭ 403 (+2586.67%)
Mutual labels:  ui-kit
splendor-ui
A set of UI components for splendor-xzwhome. Built with Vue 3.
Stars: ✭ 20 (+33.33%)
Mutual labels:  ui-kit
mdb4-react-ui-kit
React Bootstrap with Material Design - Powerful and free UI KIT
Stars: ✭ 74 (+393.33%)
Mutual labels:  ui-kit
expo-ui-kit
expo-ui-kit - a components based React-Native UI Kit
Stars: ✭ 88 (+486.67%)
Mutual labels:  ui-kit
notus-js
Notus JS: Free Tailwind CSS UI Kit and Admin
Stars: ✭ 191 (+1173.33%)
Mutual labels:  ui-kit
Squid
C# Realtime GUI System
Stars: ✭ 80 (+433.33%)
Mutual labels:  ui-kit
sugui
UI Components library based on React, Styled Components and React Testing Library
Stars: ✭ 17 (+13.33%)
Mutual labels:  ui-kit
elm-antd
The official Ant Design UI Kit for Elm
Stars: ✭ 56 (+273.33%)
Mutual labels:  ui-kit
readky
Readky is a Free Flutter News App Starter Template that can help you develop a News application much faster.
Stars: ✭ 52 (+246.67%)
Mutual labels:  ui-kit
ngx-vant
Lightweight Mobile UI Components built on Vant and Angular
Stars: ✭ 34 (+126.67%)
Mutual labels:  ui-kit
void-ui
A UI toolkit for Vue.js.
Stars: ✭ 20 (+33.33%)
Mutual labels:  ui-kit
taroify
Taroify 是移动端组件库 Vant 的 Taro 版本,两者基于相同的视觉规范,提供一致的 API 接口,助力开发者快速搭建小程序应用。
Stars: ✭ 420 (+2700%)
Mutual labels:  ui-kit
Citrus.Avalonia
Modern styles for Avalonia controls.
Stars: ✭ 326 (+2073.33%)
Mutual labels:  ui-kit
flutter-ui-boilerplate
Flutter ui boilerplate is easiest way to create new flutter project with clean code and well organized file folder.
Stars: ✭ 114 (+660%)
Mutual labels:  ui-kit

CJ Affiliate Visual Stack

Build Status

This package includes a set of React components with a consistent visual style that can be consumed in other React applications. The components are unbiased and generally stateless, composed primarily of visual styles rather than functionality.

Installation

$ npm install --save @cjdev/visual-stack bootstrap-loader bootstrap-sass

Usage

This package includes both a set of components and a global stylesheet composed of global styles. To include the global styles, require the @cjdev/visual-stack/lib/global module, or add it as a webpack entry point or similar.

The individual components are provided under the @cjdev/visual-stack/lib/components/ path. It may be worthwhile to add a shorter alias for this require path to keep imports short.

Example

import React from 'react';
import ReactDOM from 'react-dom';

import '@cjdev/visual-stack/lib/global';

import { Button } from '@cjdev/visual-stack/lib/components/Button';
import { Panel, Body } from '@cjdev/visual-stack/lib/components/Panel';

ReactDOM.render(
  <Panel>
    <Body>
      <h1>Hello, world!</h1>
      <Button type="primary" onClick={() => console.log('clicked!')}>Click Me</Button>
    </Body>
  </Panel>,
  document.getElementById('application')
);

Version 1.0 Breaking Changes

Various components have been updated to increase their functionality, however upgrading to 1.0 will break existing layout and usage of certain components.

Components

SideNav
  • Link Names must now be wrapped in <span> tags to give them the correct styling
  • SideNavIcon can now take an extra prop 'letter', which will create an Icon with the letter passed into it
import { SideNav, Link as SideNavLink, LinkGroup, SideNavIcon } from '@cjdev/visual-stack-redux/lib/components/SideNav';

ReactDOM.render(
    <SideNav>
        <LinkGroup label="Something" icon={<SideNavIcon type="square" />} >
            <SideNavLink>
                <WhateverRoutingWrapperYouWantToUse>
                    <SideNavIcon type="circle" />
                    <span>Link Name</span> // Link Names need to be wrapped in a span to
                                           // give it the correct styling
                </WhateverRoutingWrapperYouWantToUse>
            </SideNavLink>
            <SideNavLink>
                <WhateverRoutingWrapperYouWantToUse>
                    <span>Link Name</span> // If no Icon is given, the default will be the
                                           // first letter of the link name will be used to
                                           // make an icon
                </WhateverRoutingWrapperYouWantToUse>
            </SideNavLink>
        </LinkGroup>
        <SideNavLink>
            <WhateverRoutingWrapperYouWantToUse>
                <SideNavIcon type="circle" />
                <span>Link Name</span>
            </WhateverRoutingWrapperYouWantToUse>
        </SideNavLink>
    </SideNav>
)
Application Layout
  • Now has a redux component, which should be used if with the Redux SideNav. This will allow for your page container to resize correctly when the SideNav is collapsed.
// example code below is for use of the redux Applcation Layout (default export),
// which is the suggested use if redux SideNav is also used
import Layout from '@cjdev/visual-stack-redux/lib/layouts/ApplicationLayout';
import { SideNav } from '@cjdev/visual-stack-redux/lib/components/SideNav';

const AppLayout = ({children}) =>
    <Layout
        topNav={<TopNav appName="My Awesome App" logo={<CJLogo/>} />}
        sideNav={<SideNav></SideNav>}
        >
        {children}
    </Layout>

Contributing

See the CONTRIBUTING.md file.

Publishing

To publish, you must have lerna installed globally npm install lerna -g

Publish steps:

  • Update CHANGELOG.md with notes and version number
  • Push/merge into master
  • lerna publish
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].