user2856066
user2856066

Reputation: 831

Style meteor account ui

I thought it should be simple but I cant understand how to implement useraccounts:semantic-ui to my Meteor app. I added the package, and then what? Can anyone give me a hint. Thanks.

Upvotes: 0

Views: 454

Answers (1)

Matthias A. Eckhart
Matthias A. Eckhart

Reputation: 5156

Here is a brief overview on how to include the useraccounts:semantic-ui package:

  1. Install the respective packages: meteor add semantic:ui-css useraccounts:semantic-ui accounts-password (or any other account service).
  2. Include the atForm template which is used to handle all sorts of user account operations, e.g. sign up, login: {{> atForm}}.
  3. Include the atNavButton template which is used to display a sign up or login button: {{> atNavButton}} (optional).

Please note: You can lock the atForm template to a particular state with the state argument, e.g. {{> atForm state='signUp'}}. You probably want to do this for creating different routes (/signup or /login).

Upvotes: 2

Related Questions