1.0.0 • Published 8 years ago

@vendasta/fec-box v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

box

box is a component which provides a container for content and optionally a title

Requirements

  • Install the component to your project
npm install @vendasta/fec-box [--save]
  • Next, you will need to import your box in whatever module you wish to use it in:
import { BoxModule } from '@vendasta/fec-box/box.module';
...
@NgModule({
    ...
    imports: [
        BoxModule
    ]
})

Usage

The above will provide the bare minimum to reach compilation. To use the box, we must then include the va-box tag.

import {Component} from "@angular/core";

@Component({
    ...
    template: `
        <va-box>
            <box-title>This is a title!</box-title>
            <h3>This is a subtitle in the content</h3>
            This is some content! We can put Angular2 components in here!
            <va-btn va-btn-primary></va-btn>
        </va-box>
    `
})
...

You may wish to style the content inside your box, in which case the following scss will target it:

va-box {
    background-color: aliceblue;
}
1.0.0

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago