Button
Example
import { TgButton2Component } from '@trademe/tangram';
Buttons invite interaction by having rounded corners and rising up on hover. They are used to trigger an action, such as submitting a form.
A button is different to a link, which is used for any interaction that navigates to another ‘page’.
Example
Behaviour
At the sm
Accessibility
- When using an icon on its own as link or button, make sure that a description is available for customers using screen readers. Use the
text on the icon to provide this description.alt - Icons shown alongside text in a button should be hidden from assistive technology to avoid a double up of content. Add
to hide the icon from the screen reader.aria-hidden="true"
Button design pattern
Coming soon
Design pattern coming soon! In the meantime, the #tangram Slack channel is always available for support.
Watchlist design pattern
Coming soon
Design pattern coming soon! In the meantime, the #tangram Slack channel is always available for support.