tmonte / fabulosa Goto Github PK
View Code? Open in Web Editor NEWSpectre CSS Components for Fable
Home Page: https://fabulosa-ui.github.io/fabulosa
Spectre CSS Components for Fable
Home Page: https://fabulosa-ui.github.io/fabulosa
Make it work like Page Nav
Missing tests:
Button.button {
props = Some [Button.Size Button.Small]
htmlProps = Some [OnClick (fun e -> e |> console.log)]
children = None
}
Button.button { Button.default with
props = [Button.Size Button.Small]
htmlProps = [OnClick (fun e -> e |> console.log)]
}
{ Button.button with
props = [Button.Size Button.Small];
htmlProps = [OnClick (fun e -> e |> console.log)] }
|> Button.render
Button.button [OnClick (fun e -> e |> console.log)]
|> transform
Button.propToClass
[Button.Size Button.Small]
Button.create
[Button.Kind Button.Default]
[OnClick (fun e -> e |> console.log)]
Button.button "text"
{ Button.button with
size = Button.Small;
onClick = (fun e -> e |> console.log) }
|> Button.render
Button.button { Button.default with
size = Button.Small;
onClick = (fun e -> e |> console.log) }
Button.button {
Button.defaults with
Kind = Button.Default
HTMLProps = [OnClick (fun e -> e |> console.log)] } []
Add Code Highlighter to Code examples
Bars represent the progress of a task or the value within the known range. Bars are custom components for displaying HTML5 , and input range elements.
Add a container element with the bar class. And add child elements with the bar-item class. The width percentage value is needed for every bar-item.
There is the bar-sm class for thinner Bars. Also, you could use Tooltips for any bar-item.
<!-- normal bars -->
<div class="bar bar-sm">
<div class="bar-item" role="progressbar" style="width:25%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<!-- multi-bars -->
<div class="bar">
<div class="bar-item tooltip" data-tooltip="25%" style="width:25%;">25%</div>
<div class="bar-item" style="width:15%;background:#818bd5;">15%</div>
</div>
You can add the bar-slider class to the Bars container. And add child elements with the bar-item class and bar-slider-btn inside bar-item. You need to set the bar-item width manually to have the slider point.
If there are two bar-item divs in one bar-slider, you will have a range slider.
<!-- normal slider -->
<div class="bar bar-slider">
<div class="bar-item" role="progressbar" style="width:25%;">
<button class="bar-slider-btn btn" role="slider"></button>
</div>
</div>
<!-- range slider -->
<div class="bar bar-slider">
<div class="bar-item" role="progressbar" style="width:15%;">
<button class="bar-slider-btn btn" role="slider"></button>
</div>
<div class="bar-item" role="progressbar" style="width:65%;">
<button class="bar-slider-btn btn" role="slider"></button>
</div>
</div>
Create a fabuloso logo
Refactor components to use
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.