0.0.1 • Published 5 years ago

ng-figma v0.0.1

Weekly downloads
5
License
-
Repository
-
Last release
5 years ago

ngx-figma

Angular component to render Figma live embeds.

Install

npm install @gilluan/ngx-figma --save // OR
yarn add @gilluan/ngx-figma

Getting Started

Ensure you import the module and the dependencies:

import { NgxFigmaModule }

@NgModule({
   imports: [
       NgxFigmaModule, 

       ...OtherModules 
   ] // along with your other modules
})
export class AppModule {}

Basic Example

@Component({
    selector: 'app',
    template: `
    <ngx-figma
      url="https://www.figma.com/file/LKQ4FJ4bTnCSjedbRpk931/Sample-File">
    </ngx-figma>
    `
});
export class App {

}

Using height and width Example

@Component({
    selector: 'app',
    template: `
    <ngx-figma
      height="600"
      width="800"
      url="https://www.figma.com/file/LKQ4FJ4bTnCSjedbRpk931/Sample-File">
    </ngx-figma>
    `
});
export class App {}