7.0.0 • Published 6 months ago

@smui/chips v7.0.0

Weekly downloads
1,089
License
Apache-2.0
Repository
github
Last release
6 months ago

Svelte Material UI - Chips

Chips are used to show discrete information, filter options, input tags, or actions.

Installation

npm install --save-dev @smui/chips

Examples and Usage Information

https://sveltematerialui.com/demo/chips

Exports

(default)

A chip.

Props / Defaults

  • use: [] - An array of Svelte actions and/or arrays of an action and its options.
  • class: '' - A CSS class string.
  • ripple: true - Whether to implement a ripple for when the component is interacted with.
  • touch: false - Increase the touch target.
  • shouldRemoveOnTrailingIconClick: true - Whether the chip should be removed upon clicking the trailing icon.
  • shouldFocusPrimaryActionOnClick: true - Whether the chip should focus the primary action when it is clicked.

Events

  • MDCChip:interaction
  • MDCChip:selection
  • MDCChip:removal
  • MDCChip:trailingIconInteraction
  • MDCChip:navigation

Set

A set of chips. Chips should only be added onto the end of the set's chip array.

Props / Defaults

  • use: [] - An array of Svelte actions and/or arrays of an action and its options.
  • class: '' - A CSS class string.
  • chips [] - An array containing the chips.
  • key chip => chip - A function used to get the key of the chip. Chip sets that have removable chips should always provide unique keys.
  • selected undefined - The currently selected chip or chips.
  • choice false - Whether to present the chips as a set of choices, allowing one to be chosen.
  • filter false - Whether to present the chips as a set of options, allowing any number to be chosen.
  • input false - Whether to present the chips as a set of values, allowing them to be removed.

Text

A text label.

todo...

LeadingIcon

A graphic icon.

todo...

TrailingIcon

A graphic icon.

todo...

TrailingAction

A graphic icon.

todo...

More Information

See Chips in the Material design spec.

See Chips in MDC-Web for information about the upstream library's architecture.

8.0.0-alpha.0

6 months ago

7.0.0

7 months ago

7.0.0-beta.18

8 months ago

7.0.0-beta.17

8 months ago

7.0.0-beta.16

11 months ago

7.0.0-beta.11

1 year ago

7.0.0-beta.12

1 year ago

7.0.0-beta.13

1 year ago

7.0.0-beta.14

1 year ago

7.0.0-beta.10

1 year ago

7.0.0-beta.15

1 year ago

7.0.0-beta.9

1 year ago

7.0.0-beta.6

2 years ago

7.0.0-beta.7

2 years ago

7.0.0-beta.4

2 years ago

7.0.0-beta.5

2 years ago

7.0.0-beta.8

2 years ago

7.0.0-beta.2

2 years ago

7.0.0-beta.3

2 years ago

7.0.0-beta.1

2 years ago

7.0.0-beta.0

2 years ago

6.1.4

2 years ago

6.1.0

2 years ago

6.0.0

2 years ago

6.0.0-beta.16

3 years ago

6.0.0-beta.15

3 years ago

6.0.0-beta.14

3 years ago

6.0.0-beta.13

3 years ago

6.0.0-beta.12

3 years ago

6.0.0-beta.11

3 years ago

6.0.0-beta.7

3 years ago

6.0.0-beta.8

3 years ago

6.0.0-beta.9

3 years ago

6.0.0-beta.3

3 years ago

6.0.0-beta.4

3 years ago

6.0.0-beta.5

3 years ago

6.0.0-beta.6

3 years ago

6.0.0-beta.0

3 years ago

6.0.0-beta.1

3 years ago

6.0.0-beta.2

3 years ago

6.0.0-beta.10

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

5.0.0-beta.8

3 years ago

5.0.0-beta.6

3 years ago

5.0.0-beta.7

3 years ago

5.0.0-beta.4

3 years ago

5.0.0-beta.5

3 years ago

5.0.0-beta.3

3 years ago

5.0.0-beta.0

3 years ago

5.0.0-beta.1

3 years ago

4.2.0

4 years ago

4.1.0

4 years ago

4.0.0

4 years ago

3.1.0

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

3.0.0-beta.11

4 years ago

3.0.0-beta.12

4 years ago

3.0.0-beta.9

4 years ago

3.0.0-beta.10

4 years ago

3.0.0-beta.7

4 years ago

3.0.0-beta.8

4 years ago

3.0.0-beta.5

4 years ago

3.0.0-beta.6

4 years ago

3.0.0-beta.3

4 years ago

3.0.0-beta.4

4 years ago

3.0.0-beta.1

4 years ago

3.0.0-beta.0

4 years ago

3.0.0-beta.2

4 years ago

2.0.0-beta.1

4 years ago

2.0.0-beta.0

4 years ago

2.0.0-alpha.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

1.0.0-beta.21

5 years ago

1.0.0-beta.20

5 years ago

1.0.0-beta.19

5 years ago

1.0.0-beta.18

5 years ago

1.0.0-beta.17

5 years ago

1.0.0-beta.16

5 years ago

1.0.0-beta.15

5 years ago

1.0.0-beta.14

5 years ago

1.0.0-beta.11

5 years ago

1.0.0-beta.10

5 years ago

1.0.0-beta.9

5 years ago

1.0.0-beta.8

5 years ago