Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/josellia/ng-collapse-details

ngx collapse details
https://github.com/josellia/ng-collapse-details

angular-cli library

Last synced: 20 days ago
JSON representation

ngx collapse details

Awesome Lists containing this project

README

        

# NgxCollapseDetails

Angular component for extra content

![npm](https://img.shields.io/npm/v/ngx-collapse-details)
![NPM](https://img.shields.io/npm/l/ngx-collapse-details)

![details](https://user-images.githubusercontent.com/33287490/149425680-230cacb4-85f9-4dfd-9ad8-eb5be691f4c0.PNG)

## How to install

Below are ways to install the library using npm or yarn:

```
npm i ngx-summary-details
# or
ng add ngx-summary-details
```

## How to use default component

First we need to import ours into some module to be used

```jsx
import { BrowserModule } from "@angular/platform-browser";
import { NgModule } from "@angular/core";
import { NgxCollapseDetailsComponent } from "ngx-collapse-details";
import { AppComponent } from "./app.component";
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, NgxCollapseDetailsComponent],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
```

```jsx


  • Teste 1

  • Teste 2

```

## How to use custom component

```jsx


  • Teste 1

  • Teste 2

```

## Properties

This component is an abstraction of a collapse, but using native HTML properties.

| Props | type | required | Description |
| ------------ | ------ | -------- | --------------------------------- |
| width | string | | |
| summary | string | | |
| bgColor | string | | Background color of summary |
| bgHover | string | | Background color hover of summary |
| color | string | | Color of summary |
| colorHover | string | | Color hover of summary |
| borderRadius | string | | Border radius of summary |
| border | string | | Border of summary |
| boxShadow | string | | Box shadow of summary |