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

aui

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aui

= React + Semantic UI for Alicorns.

  • 0.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-77.78%
Maintainers
1
Weekly downloads
 
Created
Source

= React + Semantic UI for Alicorns.

Aui is a small glue component that intigrates Semantic UI into React as properties, which feels more natural.

Instead of many new components, all properties that === true are automatically translated into the className of each tag. Semantic Module and other semantic javascript is automatically called on things that need it, like dropdown and even api. (don't forget to include semantic.css on your page!)

const React = require('React'),
	Aui = require('aui').Aui;

export const Login = React.createClass({
	render() {
		return (
			<Aui>
				<form ui form>
					<div ui large fluid icon input>
						<input type="text" name="username" placeholder="username..." />
						<i ui large user icon />
					</div>
					<div ui large fluid icon input>
						<input type="password"	name="password" placeholder="password..." />
						<i ui large privacy icon />
					</div>
					<div ui large white fluid button> Login </div>
				</form>
			</Aui>
		);
	}
});

React.render(
	<Aui>
		<div ui page grid>
			<div column>
				<Login/>
			</div>
		</div>
	</Aui>,
	document.body);

The dom should turn out something like this after render:

<body>
	<div class="ui page grid">
		<div class="column">
			<form class="ui form">
				<div class="ui large fluid icon input">
					<input type="text" name="username" placeholder="username..."></input>
					<i class="ui large user icon"></i>
				</div>
				<div class="ui large fluid icon input">
					<input type="password"	name="password" placeholder="password..."></input>
					<i class="ui large privacy icon"></i>
				</div>
				<div class="ui large white fluid button"> Login </div>
			</form>
		</div>
	</div>
</body>

Public Domain (Unlicense)

Keywords

FAQs

Package last updated on 23 Dec 2014

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