Skip to main content

fast-divider

A web component implementation of a horizontal rule.

Setup#

import {    provideFASTDesignSystem,    fastDivider} from "@microsoft/fast-components";
provideFASTDesignSystem()    .register(        fastDivider()    );

Usage#

Live Editor
Result
SyntaxError: Unexpected token (1:8)
1 : return ()
            ^

Create your own design#

import { Divider, dividerTemplate as template } from "@microsoft/fast-foundation";import { dividerStyles as styles } from "./my-divider.styles";
export const myDivider = Divider.compose({    baseName: "divider",    template,    styles,});

Additional resources#