Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement UsaLink component #49

Closed
patrickcate opened this issue Oct 30, 2021 · 0 comments
Closed

Implement UsaLink component #49

patrickcate opened this issue Oct 30, 2021 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@patrickcate
Copy link
Owner

Link

A link connects users to a different page or further information.

status: draft

Props

Name Type Default Required Options
alt Boolean false false n/a
external Boolean false false n/a

Slots

  • default

CSS Classes

  • alt: usa-link--alt
  • external: usa-link--external

External Libraries

  • None

Sub-Components

  • None

Dependencies

  • BaseLink component

Notes

  • All BaseLink props can be used on this component.
  • TODO: alt prop bad name because is also name of attribute?

Tests

  1. The component has the default usa-link CSS class applied.
  2. If a alt prop is set, the CSS class usa-link--alt is applied.
  3. If a external prop is set, the CSS class usa-link--external is applied.
@patrickcate patrickcate added the feature New feature or request label Nov 11, 2021
@patrickcate patrickcate self-assigned this Nov 13, 2021
patrickcate added a commit that referenced this issue Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant