0.42.2 • Published 27 days ago

@spectrum-web-components/help-text v0.42.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
27 days ago

Description

An <sp-help-text> provides either an informative description or an error message that gives more context about what a user needs to input. It's commonly used in forms.

Usage

See it on NPM! How big is this package in your project?

yarn add @spectrum-web-components/help-text

Import the side effectful registration of <sp-help-text> via:

import '@spectrum-web-components/help-text/sp-help-text.js';

When looking to leverage the HelpText base class as a type and/or for extension purposes, do so via:

import { HelpText } from '@spectrum-web-components/help-text';

Sizes

<sp-help-text size="s">Passwords must be at least 8 characters.</sp-help-text>
<sp-help-text size="m">Passwords must be at least 8 characters.</sp-help-text>
<sp-help-text size="l">Passwords must be at least 8 characters.</sp-help-text>
<sp-help-text size="xl">Passwords must be at least 8 characters.</sp-help-text>

Negative

The negative variant of <sp-help-text> is used to convey error messages. An error message should be different than the informative message otherwise delivers to the visitor and should show a solution for correcting the error that has been encountered.

<sp-help-text variant="negative">
    Create a password with at least 8 characters.
</sp-help-text>

Icon

When associated with content that does not supply an icon outlining the presence of an error, use the icon attribute to display one as part of the <sp-help-text> element.

<sp-help-text variant="negative" icon>
    Create a password with at least 8 characters.
</sp-help-text>

Disabled

When associated to content the is disabled, use the disabled attribute to match the delivery of the <sp-help-text> element to that content.

<sp-help-text disabled>Passwords must be at least 8 characters.</sp-help-text>
0.42.2

27 days ago

0.42.1

28 days ago

0.42.0

1 month ago

0.41.2

2 months ago

0.41.1

2 months ago

0.41.0

3 months ago

0.40.5

3 months ago

0.40.4

3 months ago

0.40.3

4 months ago

0.40.2

4 months ago

0.40.1

5 months ago

0.36.0

9 months ago

0.40.0

6 months ago

0.35.1-rc.15

9 months ago

0.37.0

9 months ago

0.34.1-rc.0

10 months ago

0.35.1-rc.25

9 months ago

0.35.1-rc.26

9 months ago

0.35.1-rc.24

9 months ago

0.38.0

8 months ago

0.35.1-rc.34

9 months ago

0.34.0

10 months ago

0.35.1-rc.43

9 months ago

0.35.1-rc.41

9 months ago

0.39.1

7 months ago

0.39.0

7 months ago

0.35.0

9 months ago

0.39.4

6 months ago

0.39.3

6 months ago

0.39.2

7 months ago

0.33.3-overlay.66

10 months ago

0.33.3-overlay.65

10 months ago

0.33.3-overlay.61

10 months ago

0.31.1-react.21

11 months ago

0.32.0

11 months ago

0.30.0

12 months ago

0.33.1-overlay.41

11 months ago

0.31.1-react.3

12 months ago

0.31.1-react.2

12 months ago

0.30.1-overlay.30

12 months ago

0.33.1-overlay.39

11 months ago

0.30.1-overlay.31

12 months ago

0.32.1-overlay.33

11 months ago

0.33.2

11 months ago

0.33.0

11 months ago

0.30.1-overlay.38

12 months ago

0.30.1-overlay.37

12 months ago

0.30.1-overlay.41

12 months ago

0.30.1-overlay.42

12 months ago

0.30.1-overlay.40

12 months ago

0.32.1-overlay.41

11 months ago

0.31.0

12 months ago

0.31.1-overlay.29

12 months ago

0.2.14

1 year ago

0.2.13

1 year ago

0.2.12

1 year ago

0.2.11

1 year ago

0.2.10-react.75

1 year ago

0.2.10-react.48

1 year ago

0.2.10-react.49

1 year ago

0.2.10

1 year ago

0.2.10-react.50

1 year ago

0.2.10-react.32

1 year ago

0.2.7-react.54

1 year ago

0.2.7

1 year ago

0.2.9

1 year ago

0.2.8

1 year ago

0.2.6

1 year ago

0.2.3

2 years ago

0.2.5

1 year ago

0.2.4

2 years ago

0.2.1

2 years ago

0.2.2

2 years ago

0.1.12-devmode.0

2 years ago

0.1.11-devmode.7

2 years ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.11-devmode.0

2 years ago

0.2.0

2 years ago

0.2.0-devmode.0

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.3-express.9

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.1-express.41

2 years ago

0.1.2-express.12

2 years ago

0.1.0

2 years ago