tru-space-story-book
v0.1.63
Published
TruSpace Storybook
Downloads
6
Maintainers
Readme
TruSpace Storybook
TruSpace storybook is set of angular components that implements TruSpace Design Pattern specification.
Installation
npm install tru-space-story-book
Usage
Here's a quick setup to get you started
Open your module (sample.module.ts is just a sample)
@sample.module.ts
import { TruspaceLibraryModule } from 'tru-space-story-book';
@NgModule({
imports: [TruspaceLibraryModule,]
});
Open any of your .html file
@sample.component.html
<truspace-button
label="Button"
size="sm"
type="active"
fontWeight="regular"
[fontSize]="12"
id=""
(clickEvent)="clickEvent($event)"
>
</truspace-button>
@sample.component.ts
function clickEvent(data: any) {
console.log("This function will be called ", data);
}