New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

fluent-web-components

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluent-web-components

Fluent Design Components

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
8
300%
Maintainers
1
Weekly downloads
 
Created
Source

Fluent Design Web Components

Built With Stencil

Microsoft's Fluent Design system implemented for the web using Stencil.

Available Components:

  • Acrylic
  • Content
  • Button

Coming Soon:

  • Input
  • Navigation View

Getting started

Install from npm: npm i --save fluent-web-components

If you don't already have the body set to have no margin & padding, make sure you do.

body {
  margin: 0;
  padding: 0;
}

Components

Acrylic

  • Creates a container for child elements with the Fluent Acrylic effect applied.

Tag: fluent-acrylic

PropertyTypeDefaultDescription
paddingbooleanfalseGives acrylic children some room to breathe.
tint-opacity[1-10]5Opacity from 1 to 9 of the background of the acrylic
tint-colorcss colorcolor schemeChanges the tinit color of the acrylic from the default color scheme specified.
background-source"host-backdrop" or "backdrop""host-backdrop"Which background source to use as the background of the acrylic. "host-backdrop" uses the image set for the --background-image variable, while "backdrop" uses the content behind the element (right now this uses backdrop-filter so it may not work in all browsers yet).

Button

  • A simple button component with support for custom styling as specified in the UWP docs.

Tag: fluent-button

PropertyTypeDefaultDescription
backgroundstringbased on themeChanges the default background of the button
foregroundstringbased on themeChanges the default text color of the button

...and several other properties. See Microsoft's specs on UWP button styling for more info.

Content

  • A content wrapper for an application using Fluent for Web. It is optional but recommended.

Tag: fluent-content

PropertyTypeDefaultDescription
no-imagebooleanfalseDisables a page-wide background image, instead opting for a solid background.
theme"light" or "dark""light"Apply the selected theme to all fluent elements that are children of this content.
background-imagestringundefinedSet the host backdrop of the content.

FAQs

Package last updated on 10 May 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