Skip to content

feature(progress): add component#23

Merged
Stradivario merged 3 commits intomasterfrom
feature-progress
Oct 21, 2019
Merged

feature(progress): add component#23
Stradivario merged 3 commits intomasterfrom
feature-progress

Conversation

@zdrr
Copy link
Copy Markdown
Collaborator

@zdrr zdrr commented Oct 21, 2019

Issue

Description

Introducing rx-progress component

Screenshot from 2019-10-21 22-23-12

Progress Component

Usage
import { ProgressComponent } from '@rxdi/ui-kit/progress';

@Module({
  components: [ProgressComponent]
})
export class AppModule {}
<h4>Simple</h4>
<rx-progress value="25" palette="primary"></rx-progress>
<h4>Rounded</h4>
<rx-progress value="50" rounded palette="danger"></rx-progress>
<h4>Height</h4>
<rx-progress value="75" height="20" palette="warning"></rx-progress>
<h4>Label</h4>
<rx-progress value="45" height="20" label palette="primary"></rx-progress>
import { Component, LitElement, html, css } from '@rxdi/lit-html';

@Component({
  selector: 'progress-view-component',
  style: css`
    .container {
      background-color: white;
      text-align: center;
      padding: 50px;
    }
  `,
  template(this: ProgressViewComponent) {
    return html`
      <div class="container">
        <rx-progress value="25" palette="primary"></rx-progress>
      </div>
    `;
  }
})
export class ProgressViewComponent extends LitElement {}

@zdrr zdrr requested a review from Stradivario October 21, 2019 18:37
@zdrr zdrr force-pushed the feature-progress branch from d63e247 to 71d55b8 Compare October 21, 2019 18:39
@Stradivario Stradivario merged commit 81bb3d7 into master Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants