These components are based on HTML5 custom elements API. This is an attempt to unify UI
development
patterns and
elements that are used multiple times throughout any general web app.It uses 'sm' namespace for
all
components. So every
component tag starts with 'sm-'
They can replace some older UI elements like <select><input><checkbox><button>
But also more modern additions like popups(modals), tabs and many more.
Some of the components have some cool tricks under their sleeves like custom events and
variantions.
They allow developers to access more information about component or simply react to whatever
state
change happen to them.
We will go more in-depth about all the variantions and customs events related to each event as
we go
further.
Quick Start
To start using SM Components, Select components you want to download.
Get minified
Select allClear all
Copy source codeDownload JS file
Buttons
Buttons are used in various basic UI interactions to perform an action.
Popups are used to show addition UI elements that you may want to hide at first and reveal them when
needed.
Switch
To start using SM Components
Select
<sm-select> is very similar to starndatd HTML5 select and it's markup stucture is
also identical.
option1option2 somethingoption3
Strip select
To start using SM Components
MovieTV seriesVideoMusic
Tabs
To start using SM Components
inboxsentdraftspam
gjdhnsrfijbgn bdfjnbj
jadifjoaijdiajdo
dosfighjoi
flkmgklfmzkl
hbdsfhb
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Facere neque incidunt aut laudantium,
quam
id,
molestiae vero blanditiis nisi alias in magnam autem quasi cumque eveniet qui cupiditate nam
corrupti?
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Blanditiis fuga ipsam, explicabo, eius
accusamus
consectetur ex sunt soluta voluptatem iure totam nulla expedita suscipit minus molestiae
similique
odio optio
quibusdam.