You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/swatch/README.md
+56-24Lines changed: 56 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
## Description
1
+
## Overview
2
2
3
3
An `<sp-swatch>` shows a small sample of a fill — such as a color, gradient, texture, or material — that is intended to be applied to an object.
4
4
@@ -7,23 +7,25 @@ An `<sp-swatch>` shows a small sample of a fill — such as a color, gradient, t
7
7
[](https://www.npmjs.com/package/@spectrum-web-components/swatch)
8
8
[](https://bundlephobia.com/result?p=@spectrum-web-components/swatch)
9
9
10
-
```
10
+
```bash
11
11
yarn add @spectrum-web-components/swatch
12
12
```
13
13
14
14
Import the side effectful registration of `<sp-swatch>` via:
@@ -156,11 +158,13 @@ import { Swatch } from '@spectrum-web-components/swatch';
156
158
</sp-tab-panel>
157
159
</sp-tabs>
158
160
159
-
##Modifying attributes
161
+
#### Variants
160
162
161
163
An `<sp-swatch>` element can be modified by the following attributes/properties to customize its delivery as desired for your use case: `border`, `color`, `disabled`, `mixedValue` (accepted as the `mixed-value` attribute), `nothing`, `rounding`, and `shape`. Use these in concert with each other for a variety of final visual deliveries.
0 commit comments