@solid-design-system/mcp 6.27.1 → 7.0.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/metadata/packages/components/sd-datepicker/stories/alignment.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/disabled-dates.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/disabled-weekends.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/disabled.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/floating-label.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/help-text.md +7 -3
- package/metadata/packages/components/sd-datepicker/stories/invalid.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/label.md +3 -3
- package/metadata/packages/components/sd-datepicker/stories/placeholder.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/range.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/required.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/size.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/valid.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/visible-month.md +1 -1
- package/metadata/packages/components/sd-datepicker/stories/visually-disabled.md +1 -1
- package/metadata/packages/components/sd-input/stories/clearable.md +1 -1
- package/metadata/packages/components/sd-input/stories/disabled.md +1 -1
- package/metadata/packages/components/sd-input/stories/floating-label.md +1 -1
- package/metadata/packages/components/sd-input/stories/help-text.md +3 -3
- package/metadata/packages/components/sd-input/stories/icon.md +3 -3
- package/metadata/packages/components/sd-input/stories/invalid.md +7 -1
- package/metadata/packages/components/sd-input/stories/label.md +3 -3
- package/metadata/packages/components/sd-input/stories/max-length.md +1 -1
- package/metadata/packages/components/sd-input/stories/max.md +1 -1
- package/metadata/packages/components/sd-input/stories/min-length.md +1 -1
- package/metadata/packages/components/sd-input/stories/min.md +1 -1
- package/metadata/packages/components/sd-input/stories/pattern.md +1 -1
- package/metadata/packages/components/sd-input/stories/placeholder.md +1 -1
- package/metadata/packages/components/sd-input/stories/read-only.md +1 -1
- package/metadata/packages/components/sd-input/stories/required.md +1 -1
- package/metadata/packages/components/sd-input/stories/size.md +4 -4
- package/metadata/packages/components/sd-input/stories/spin-buttons.md +1 -1
- package/metadata/packages/components/sd-input/stories/toggle-password.md +1 -1
- package/metadata/packages/components/sd-input/stories/type.md +33 -4
- package/metadata/packages/components/sd-input/stories/valid.md +1 -1
- package/metadata/packages/components/sd-input/stories/value.md +1 -1
- package/metadata/packages/components/sd-input/stories/visually-disabled.md +1 -1
- package/metadata/packages/components/sd-select/stories/clearable.md +1 -1
- package/metadata/packages/components/sd-select/stories/disabled.md +1 -1
- package/metadata/packages/components/sd-select/stories/floating-label.md +1 -1
- package/metadata/packages/components/sd-select/stories/help-text.md +10 -3
- package/metadata/packages/components/sd-select/stories/invalid.md +1 -1
- package/metadata/packages/components/sd-select/stories/label.md +9 -3
- package/metadata/packages/components/sd-select/stories/max-options-visible.md +1 -1
- package/metadata/packages/components/sd-select/stories/multiple.md +1 -1
- package/metadata/packages/components/sd-select/stories/placeholder.md +1 -1
- package/metadata/packages/components/sd-select/stories/placement.md +9 -3
- package/metadata/packages/components/sd-select/stories/required.md +1 -1
- package/metadata/packages/components/sd-select/stories/size.md +25 -4
- package/metadata/packages/components/sd-select/stories/use-tags.md +1 -1
- package/metadata/packages/components/sd-select/stories/valid.md +1 -1
- package/metadata/packages/components/sd-select/stories/visually-disabled.md +1 -1
- package/metadata/packages/components/sd-teaser/stories/breakpoint.md +2 -2
- package/metadata/packages/components/sd-teaser/stories/default-and-headline-slot.md +1 -1
- package/metadata/packages/components/sd-teaser/stories/distribution.md +1 -1
- package/metadata/packages/components/sd-teaser/stories/inset.md +1 -1
- package/metadata/packages/components/sd-teaser/stories/media-slot.md +1 -1
- package/metadata/packages/components/sd-teaser/stories/meta-slot.md +1 -1
- package/metadata/packages/components/sd-teaser/stories/reverse.md +1 -1
- package/metadata/packages/components/sd-teaser/stories/variant.md +9 -5
- package/metadata/packages/components/sd-textarea/stories/disabled.md +1 -1
- package/metadata/packages/components/sd-textarea/stories/floating-label.md +9 -2
- package/metadata/packages/components/sd-textarea/stories/help-text.md +9 -3
- package/metadata/packages/components/sd-textarea/stories/invalid.md +1 -1
- package/metadata/packages/components/sd-textarea/stories/label.md +9 -3
- package/metadata/packages/components/sd-textarea/stories/max-length.md +1 -1
- package/metadata/packages/components/sd-textarea/stories/min-length.md +1 -1
- package/metadata/packages/components/sd-textarea/stories/placeholder.md +1 -1
- package/metadata/packages/components/sd-textarea/stories/readonly.md +1 -1
- package/metadata/packages/components/sd-textarea/stories/required.md +1 -1
- package/metadata/packages/components/sd-textarea/stories/rows.md +22 -4
- package/metadata/packages/components/sd-textarea/stories/size.md +25 -4
- package/metadata/packages/components/sd-textarea/stories/valid.md +1 -1
- package/metadata/packages/components/sd-textarea/stories/visually-disabled.md +1 -1
- package/metadata/packages/icons/default/content.json +41 -11
- package/metadata/packages/icons/default/system.json +22 -22
- package/metadata/packages/templates/bottom-navigation.md +2 -4
- package/metadata/packages/templates/combobox.md +4 -4
- package/metadata/packages/templates/datepicker.md +3 -3
- package/metadata/packages/templates/input.md +1 -1
- package/metadata/packages/templates/select.md +18 -4
- package/metadata/packages/templates/teaser.md +1 -1
- package/metadata/packages/templates/tooltip.md +6 -6
- package/package.json +6 -6
|
@@ -2,7 +2,7 @@ Use the `multiple` attribute to allow multiple options to be selected.
|
|
|
2
2
|
Use `--tag-max-width` to set the maximum width of the tags and to show an ellipsis, e.g. `<sd-select style="--tag-max-width: 40px">`. The default value is `15ch`
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="w-[400px] h-[500px]">
|
|
5
|
+
<div class="max-w-[400px] h-[500px]">
|
|
6
6
|
<sd-select size="lg" label="Label" placement="bottom" multiple="" value="option-1 option-2">
|
|
7
7
|
<sd-option value="option-1">Option 1</sd-option>
|
|
8
8
|
<sd-option value="option-2">Option 2</sd-option>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Use the `placeholder` attribute to show a placeholder when no option is selected.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<div class="w-[400px] h-[500px]">
|
|
4
|
+
<div class="max-w-[400px] h-[500px]">
|
|
5
5
|
<sd-select size="lg" label="Label" placeholder="Placeholder example" placement="bottom" value="">
|
|
6
6
|
<sd-option value="option-1">Option 1</sd-option>
|
|
7
7
|
<sd-option value="option-2">Option 2</sd-option>
|
|
@@ -4,8 +4,14 @@ Use the `placement` attribute to define where the select panel should appear:
|
|
|
4
4
|
- `top`
|
|
5
5
|
|
|
6
6
|
```html
|
|
7
|
-
<div class="flex items-center gap-12 h-[500px]">
|
|
8
|
-
<sd-select
|
|
7
|
+
<div class="flex flex-wrap md:flex-nowrap items-center gap-12 h-[500px]">
|
|
8
|
+
<sd-select
|
|
9
|
+
class="self-baseline w-full min-w-[200px] md:min-w-0 max-w-[400px]"
|
|
10
|
+
size="lg"
|
|
11
|
+
label="Label"
|
|
12
|
+
placement="bottom"
|
|
13
|
+
value=""
|
|
14
|
+
>
|
|
9
15
|
<sd-option value="option-1">Option 1</sd-option>
|
|
10
16
|
<sd-option value="option-2">Option 2</sd-option>
|
|
11
17
|
<sd-option value="option-3">Option 3</sd-option>
|
|
@@ -13,7 +19,7 @@ Use the `placement` attribute to define where the select panel should appear:
|
|
|
13
19
|
<sd-option value="option-5">Option 5</sd-option>
|
|
14
20
|
</sd-select>
|
|
15
21
|
|
|
16
|
-
<sd-select size="lg" label="Label" placement="top" value="">
|
|
22
|
+
<sd-select size="lg" label="Label" placement="top" value="" class="w-full min-w-[200px] md:min-w-0 max-w-[400px]">
|
|
17
23
|
<sd-option value="option-1">Option 1</sd-option>
|
|
18
24
|
<sd-option value="option-2">Option 2</sd-option>
|
|
19
25
|
<sd-option value="option-3">Option 3</sd-option>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Use the `required` attribute to mark the element as required. This can be used for form validation purposes.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<div class="w-[400px] h-[400px]">
|
|
4
|
+
<div class="max-w-[400px] h-[400px]">
|
|
5
5
|
<sd-select size="lg" label="Required" placeholder="Please select" placement="bottom" value="" required="">
|
|
6
6
|
<sd-option value="option-1">Option 1</sd-option>
|
|
7
7
|
<sd-option value="option-2">Option 2</sd-option>
|
|
@@ -6,8 +6,15 @@ Use the `size` attribute to change the size. It will cascade to slotted `sd-opti
|
|
|
6
6
|
**Note:** On the `floating-label` variant “sm” size is not available.
|
|
7
7
|
|
|
8
8
|
```html
|
|
9
|
-
<div class="flex gap-12 h-[500px]">
|
|
10
|
-
<sd-select
|
|
9
|
+
<div class="flex flex-wrap md:flex-nowrap gap-12 h-[500px]">
|
|
10
|
+
<sd-select
|
|
11
|
+
size="lg"
|
|
12
|
+
label="Label"
|
|
13
|
+
placeholder="Large"
|
|
14
|
+
placement="bottom"
|
|
15
|
+
value=""
|
|
16
|
+
class="test w-full min-w-[200px] md:min-w-0 max-w-[400px]"
|
|
17
|
+
>
|
|
11
18
|
<sd-option value="option-1" size="lg">Option 1</sd-option>
|
|
12
19
|
<sd-option value="option-2" size="lg">Option 2</sd-option>
|
|
13
20
|
<sd-option value="option-3" size="lg">Option 3</sd-option>
|
|
@@ -15,7 +22,14 @@ Use the `size` attribute to change the size. It will cascade to slotted `sd-opti
|
|
|
15
22
|
<sd-option value="option-5" size="lg">Option 5</sd-option>
|
|
16
23
|
</sd-select>
|
|
17
24
|
|
|
18
|
-
<sd-select
|
|
25
|
+
<sd-select
|
|
26
|
+
size="md"
|
|
27
|
+
label="Label"
|
|
28
|
+
placeholder="Medium"
|
|
29
|
+
placement="bottom"
|
|
30
|
+
value=""
|
|
31
|
+
class="test w-full min-w-[200px] md:min-w-0 max-w-[400px]"
|
|
32
|
+
>
|
|
19
33
|
<sd-option value="option-1" size="md">Option 1</sd-option>
|
|
20
34
|
<sd-option value="option-2" size="md">Option 2</sd-option>
|
|
21
35
|
<sd-option value="option-3" size="md">Option 3</sd-option>
|
|
@@ -23,7 +37,14 @@ Use the `size` attribute to change the size. It will cascade to slotted `sd-opti
|
|
|
23
37
|
<sd-option value="option-5" size="md">Option 5</sd-option>
|
|
24
38
|
</sd-select>
|
|
25
39
|
|
|
26
|
-
<sd-select
|
|
40
|
+
<sd-select
|
|
41
|
+
size="sm"
|
|
42
|
+
label="Label"
|
|
43
|
+
placeholder="Small"
|
|
44
|
+
placement="bottom"
|
|
45
|
+
value=""
|
|
46
|
+
class="w-full min-w-[200px] md:min-w-0 max-w-[400px]"
|
|
47
|
+
>
|
|
27
48
|
<sd-option value="option-1" size="sm">Option 1</sd-option>
|
|
28
49
|
<sd-option value="option-2" size="sm">Option 2</sd-option>
|
|
29
50
|
<sd-option value="option-3" size="sm">Option 3</sd-option>
|
|
@@ -2,7 +2,7 @@ Use the `useTags` attribute to display selected options as tags using the `sd-ta
|
|
|
2
2
|
**Hint:** It requires the `multiple` attribute to be set.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="w-[400px] h-[500px]">
|
|
5
|
+
<div class="max-w-[400px] h-[500px]">
|
|
6
6
|
<sd-select size="lg" label="Label" placement="bottom" multiple="" value="option-1 option-2" useTags>
|
|
7
7
|
<sd-option value="option-1">Option 1</sd-option>
|
|
8
8
|
<sd-option value="option-2">Option 2</sd-option>
|
|
@@ -2,7 +2,7 @@ The component gets `valid` state when the input is valid.
|
|
|
2
2
|
Use the `style-on-valid` attribute to automatically indicate and show a valid state.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="w-[400px] h-[400px]">
|
|
5
|
+
<div class="max-w-[400px] h-[400px]">
|
|
6
6
|
<sd-select
|
|
7
7
|
size="lg"
|
|
8
8
|
placement="bottom"
|
|
@@ -3,7 +3,7 @@ Use the `visually-disabled` attribute to style the component as if it was disabl
|
|
|
3
3
|
**Accessibility Hint:** Disabling elements is not recommended for accessibility reasons.
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
|
-
<div class="w-[400px] h-[200px] mt-12">
|
|
6
|
+
<div class="max-w-[400px] h-[200px] mt-12">
|
|
7
7
|
<sd-tooltip content="Visually disabled" trigger="hover focus" size="sm">
|
|
8
8
|
<sd-select size="lg" label="Label" placeholder="Visually disabled" placement="bottom" value="" visually-disabled>
|
|
9
9
|
<sd-option value="option-1">Option 1</sd-option>
|
|
@@ -6,7 +6,7 @@ Use the `breakpoint` attribute to change the teaser's layout at a specific break
|
|
|
6
6
|
```html
|
|
7
7
|
<div class="flex gap-8 flex-col">
|
|
8
8
|
<sd-teaser breakpoint="0">
|
|
9
|
-
<h3 slot="headline">Horizontal</h3>
|
|
9
|
+
<h3 slot="headline" class="sd-headline sd-headline--size-lg">Horizontal</h3>
|
|
10
10
|
<img slot="media" src="./placeholders/images/architecture.jpg" alt="" style="width:100%; height: auto;" />
|
|
11
11
|
<p>
|
|
12
12
|
Quis ut ex cupidatat proident cillum ullamco ea aute ad laborum aliqua incididunt sint ipsum. Elit enim
|
|
@@ -16,7 +16,7 @@ Use the `breakpoint` attribute to change the teaser's layout at a specific break
|
|
|
16
16
|
</sd-teaser>
|
|
17
17
|
|
|
18
18
|
<sd-teaser breakpoint="9999" class="w-[256px]">
|
|
19
|
-
<h3 slot="headline">Vertical</h3>
|
|
19
|
+
<h3 slot="headline" class="sd-headline sd-headline--size-lg">Vertical</h3>
|
|
20
20
|
<img slot="media" src="./placeholders/images/architecture.jpg" alt="" style="width:100%; height: auto;" />
|
|
21
21
|
<p>
|
|
22
22
|
Quis ut ex cupidatat proident cillum ullamco ea aute ad laborum aliqua incididunt sint ipsum. Elit enim
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
6
|
<sd-teaser>
|
|
7
|
-
<h3 slot="headline">Lorem ipsum sic semper</h3>
|
|
7
|
+
<h3 slot="headline" class="sd-headline sd-headline--size-lg">Lorem ipsum sic semper</h3>
|
|
8
8
|
<p>
|
|
9
9
|
Quis ut ex cupidatat proident cillum ullamco ea aute ad laborum aliqua incididunt sint ipsum. Elit enim
|
|
10
10
|
reprehenderit aliquip officia in minim. Eu ipsum pariatur dolor. Do ex in cupidatat anim aliqua sint voluptate sunt
|
|
@@ -2,7 +2,7 @@ Use the `--distribution-media` and `--distribution-content` CSS properties to ad
|
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
4
|
<sd-teaser style="--distribution-media: 20%; --distribution-content: 80%;">
|
|
5
|
-
<h3 slot="headline">Lorem ipsum sic semper</h3>
|
|
5
|
+
<h3 slot="headline" class="sd-headline sd-headline--size-lg">Lorem ipsum sic semper</h3>
|
|
6
6
|
<img slot="media" src="./placeholders/images/architecture.jpg" alt="" style="width:100%; height: auto;" />
|
|
7
7
|
<p>
|
|
8
8
|
Quis ut ex cupidatat proident cillum ullamco ea aute ad laborum aliqua incididunt sint ipsum. Elit enim
|
|
@@ -2,7 +2,7 @@ Use the `inset` attribute to create a teaser with an inset padding if the contex
|
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
4
|
<sd-teaser inset variant="primary-100">
|
|
5
|
-
<h3 slot="headline">Teaser with inset Padding</h3>
|
|
5
|
+
<h3 slot="headline" class="sd-headline sd-headline--size-lg">Teaser with inset Padding</h3>
|
|
6
6
|
<p>
|
|
7
7
|
Quis ut ex cupidatat proident cillum ullamco ea aute ad laborum aliqua incididunt sint ipsum. Elit enim
|
|
8
8
|
reprehenderit aliquip officia in minim. Eu ipsum pariatur dolor. Do ex in cupidatat anim aliqua sint voluptate sunt
|
|
@@ -3,7 +3,7 @@ Teasers accept a `media` slot to display images or videos.
|
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
5
|
<sd-teaser>
|
|
6
|
-
<h3 slot="headline">Lorem ipsum sic semper</h3>
|
|
6
|
+
<h3 slot="headline" class="sd-headline sd-headline--size-lg">Lorem ipsum sic semper</h3>
|
|
7
7
|
<img slot="media" src="./placeholders/images/architecture.jpg" alt="" style="width:100%; height: auto;" />
|
|
8
8
|
<p>
|
|
9
9
|
Quis ut ex cupidatat proident cillum ullamco ea aute ad laborum aliqua incididunt sint ipsum. Elit enim
|
|
@@ -2,7 +2,7 @@ Use the `meta` slot to add additional content to the teaser.
|
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
4
|
<sd-teaser>
|
|
5
|
-
<h3 slot="headline">Lorem ipsum sic semper</h3>
|
|
5
|
+
<h3 slot="headline" class="sd-headline sd-headline--size-lg">Lorem ipsum sic semper</h3>
|
|
6
6
|
<div slot="meta">
|
|
7
7
|
<time class="sd-meta sd-meta--pipe" datetime="2023-01-01">01.01.2023</time>
|
|
8
8
|
<span class="sd-meta">Author name</span>
|
|
@@ -3,7 +3,7 @@ Use the `reversed-layout` attribute to invert the horizontal layout.
|
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
5
|
<sd-teaser reversed-layout>
|
|
6
|
-
<h3 slot="headline">Horizontal</h3>
|
|
6
|
+
<h3 slot="headline" class="sd-headline sd-headline--size-lg">Horizontal</h3>
|
|
7
7
|
<img slot="media" src="./placeholders/images/architecture.jpg" alt="" class="w-full h-auto" />
|
|
8
8
|
<p>
|
|
9
9
|
Quis ut ex cupidatat proident cillum ullamco ea aute ad laborum aliqua incididunt sint ipsum. Elit enim
|
|
@@ -9,23 +9,27 @@ Use the `variant` attribute to use the appropriate teaser for your context:
|
|
|
9
9
|
```html
|
|
10
10
|
<div class="grid grid-cols-2 gap-12">
|
|
11
11
|
<sd-teaser variant="white" inset>
|
|
12
|
-
<h3 slot="headline">Teaser with white background</h3>
|
|
12
|
+
<h3 slot="headline" class="sd-headline sd-headline--size-lg">Teaser with white background</h3>
|
|
13
13
|
<p class="sd-paragraph">Lorem ipsum dolor sit amet, consetetur sadi pscing elitr, sed diam nonumy eirmod tempor.</p>
|
|
14
14
|
</sd-teaser>
|
|
15
15
|
<sd-teaser variant="white border-neutral-400">
|
|
16
|
-
<h3 slot="headline"
|
|
16
|
+
<h3 slot="headline" class="sd-headline sd-headline--size-lg">
|
|
17
|
+
Teaser with white background and border neutral-400
|
|
18
|
+
</h3>
|
|
17
19
|
<p class="sd-paragraph">Lorem ipsum dolor sit amet, consetetur sadi pscing elitr, sed diam nonumy eirmod tempor.</p>
|
|
18
20
|
</sd-teaser>
|
|
19
21
|
<sd-teaser variant="neutral-100" inset>
|
|
20
|
-
<h3 slot="headline">Teaser with neutral-100 background</h3>
|
|
22
|
+
<h3 slot="headline" class="sd-headline sd-headline--size-lg">Teaser with neutral-100 background</h3>
|
|
21
23
|
<p class="sd-paragraph">Lorem ipsum dolor sit amet, consetetur sadi pscing elitr, sed diam nonumy eirmod tempor.</p>
|
|
22
24
|
</sd-teaser>
|
|
23
25
|
<sd-teaser variant="primary-100" inset>
|
|
24
|
-
<h3 slot="headline">Teaser with primary-100 background</h3>
|
|
26
|
+
<h3 slot="headline" class="sd-headline sd-headline--size-lg">Teaser with primary-100 background</h3>
|
|
25
27
|
<p class="sd-paragraph">Lorem ipsum dolor sit amet, consetetur sadi pscing elitr, sed diam nonumy eirmod tempor.</p>
|
|
26
28
|
</sd-teaser>
|
|
27
29
|
<sd-teaser variant="primary" inset>
|
|
28
|
-
<h3 slot="headline"
|
|
30
|
+
<h3 slot="headline" class="sd-headline sd-headline--size-lg sd-headline--inverted">
|
|
31
|
+
Teaser with primary background
|
|
32
|
+
</h3>
|
|
29
33
|
<p class="sd-paragraph sd-paragraph--inverted">
|
|
30
34
|
Lorem ipsum dolor sit amet, consetetur sadi pscing elitr, sed diam nonumy eirmod tempor.
|
|
31
35
|
</p>
|
|
@@ -2,7 +2,14 @@ Use the `floating-label` attribute to enable a floating label on the text-area.
|
|
|
2
2
|
**Note:** Floating labels only work with the `label` attribute. The `label` slot is not supported. Only the `lg` and `md` sizes are available.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="flex gap-12">
|
|
6
|
-
<sd-textarea
|
|
5
|
+
<div class="flex flex-wrap md:flex-nowrap gap-12">
|
|
6
|
+
<sd-textarea
|
|
7
|
+
size="lg"
|
|
8
|
+
label="Floating Label"
|
|
9
|
+
floating-label
|
|
10
|
+
rows="4"
|
|
11
|
+
spellcheck
|
|
12
|
+
class="w-full min-w-[200px] md:min-w-0 max-w-[500px]"
|
|
13
|
+
></sd-textarea>
|
|
7
14
|
</div>
|
|
8
15
|
```
|
|
@@ -2,9 +2,15 @@ Use the `help-text` attribute to provide an accessible help text for the textare
|
|
|
2
2
|
For help texts that contain HTML, use the `help-text` slot instead.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="flex gap-12">
|
|
6
|
-
<sd-textarea
|
|
7
|
-
|
|
5
|
+
<div class="flex flex-wrap md:flex-nowrap gap-12">
|
|
6
|
+
<sd-textarea
|
|
7
|
+
size="lg"
|
|
8
|
+
label="Label"
|
|
9
|
+
help-text="Help text attribute"
|
|
10
|
+
rows="4"
|
|
11
|
+
class="w-full min-w-[200px] md:min-w-0 max-w-[500px]"
|
|
12
|
+
></sd-textarea>
|
|
13
|
+
<sd-textarea size="lg" label="Label" rows="4" spellcheck class="w-full min-w-[200px] md:min-w-0 max-w-[500px]">
|
|
8
14
|
<div slot="help-text" class="text-lg">Help text slot</div>
|
|
9
15
|
</sd-textarea>
|
|
10
16
|
</div>
|
|
@@ -2,9 +2,15 @@ Use the `label` attribute to provide an accessible label for the textarea elemen
|
|
|
2
2
|
For labels that contain HTML, use the `label` slot instead.
|
|
3
3
|
|
|
4
4
|
```html
|
|
5
|
-
<div class="flex gap-12">
|
|
6
|
-
<sd-textarea
|
|
7
|
-
|
|
5
|
+
<div class="flex flex-wrap md:flex-nowrap gap-12">
|
|
6
|
+
<sd-textarea
|
|
7
|
+
size="lg"
|
|
8
|
+
label="Label attribute"
|
|
9
|
+
rows="4"
|
|
10
|
+
spellcheck
|
|
11
|
+
class="w-full min-w-[200px] md:min-w-0 max-w-[500px]"
|
|
12
|
+
></sd-textarea>
|
|
13
|
+
<sd-textarea size="lg" rows="4" spellcheck class="w-full min-w-[200px] md:min-w-0 max-w-[500px]">
|
|
8
14
|
<div slot="label" class="text-lg">Label slot</div>
|
|
9
15
|
</sd-textarea>
|
|
10
16
|
</div>
|
|
@@ -3,7 +3,7 @@ Interaction is enabled, but the textarea cannot be edited.
|
|
|
3
3
|
Events will be fired.
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
|
-
<div class="w-[500px]">
|
|
6
|
+
<div class="max-w-[500px]">
|
|
7
7
|
<sd-textarea
|
|
8
8
|
value="Read only example Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod."
|
|
9
9
|
size="lg"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Use the `required` attribute to mark the element as required. This can be used for form validation purposes.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<div class="w-[500px]">
|
|
4
|
+
<div class="max-w-[500px]">
|
|
5
5
|
<sd-textarea size="lg" label="Required" rows="4" required spellcheck></sd-textarea>
|
|
6
6
|
</div>
|
|
7
7
|
```
|
|
@@ -1,11 +1,29 @@
|
|
|
1
1
|
Use the `rows` attribute to set the number of rows.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<div class="flex gap-12">
|
|
5
|
-
<sd-textarea
|
|
4
|
+
<div class="flex flex-wrap md:flex-nowrap gap-12">
|
|
5
|
+
<sd-textarea
|
|
6
|
+
size="lg"
|
|
7
|
+
label="Label"
|
|
8
|
+
rows="4"
|
|
9
|
+
spellcheck
|
|
10
|
+
class="w-full min-w-[200px] md:min-w-0 max-w-[500px]"
|
|
11
|
+
></sd-textarea>
|
|
6
12
|
|
|
7
|
-
<sd-textarea
|
|
13
|
+
<sd-textarea
|
|
14
|
+
size="lg"
|
|
15
|
+
label="Label"
|
|
16
|
+
rows="8"
|
|
17
|
+
spellcheck
|
|
18
|
+
class="w-full min-w-[200px] md:min-w-0 max-w-[500px]"
|
|
19
|
+
></sd-textarea>
|
|
8
20
|
|
|
9
|
-
<sd-textarea
|
|
21
|
+
<sd-textarea
|
|
22
|
+
size="lg"
|
|
23
|
+
label="Label"
|
|
24
|
+
rows="12"
|
|
25
|
+
spellcheck
|
|
26
|
+
class="w-full min-w-[200px] md:min-w-0 max-w-[500px]"
|
|
27
|
+
></sd-textarea>
|
|
10
28
|
</div>
|
|
11
29
|
```
|
|
@@ -6,11 +6,32 @@ Use the `size` attribute to change the size:
|
|
|
6
6
|
**Note:** On the `floating-label` variant “sm” size is not available.
|
|
7
7
|
|
|
8
8
|
```html
|
|
9
|
-
<div class="flex gap-12">
|
|
10
|
-
<sd-textarea
|
|
9
|
+
<div class="flex flex-wrap md:flex-nowrap gap-12">
|
|
10
|
+
<sd-textarea
|
|
11
|
+
value="Large"
|
|
12
|
+
size="lg"
|
|
13
|
+
label="Label"
|
|
14
|
+
rows="4"
|
|
15
|
+
spellcheck
|
|
16
|
+
class="w-full min-w-[200px] md:min-w-0 max-w-[500px]"
|
|
17
|
+
></sd-textarea>
|
|
11
18
|
|
|
12
|
-
<sd-textarea
|
|
19
|
+
<sd-textarea
|
|
20
|
+
value="Medium"
|
|
21
|
+
size="md"
|
|
22
|
+
label="Label"
|
|
23
|
+
rows="4"
|
|
24
|
+
spellcheck
|
|
25
|
+
class="w-full min-w-[200px] md:min-w-0 max-w-[500px]"
|
|
26
|
+
></sd-textarea>
|
|
13
27
|
|
|
14
|
-
<sd-textarea
|
|
28
|
+
<sd-textarea
|
|
29
|
+
value="Small"
|
|
30
|
+
size="sm"
|
|
31
|
+
label="Label"
|
|
32
|
+
rows="4"
|
|
33
|
+
spellcheck
|
|
34
|
+
class="w-full min-w-[200px] md:min-w-0 max-w-[500px]"
|
|
35
|
+
></sd-textarea>
|
|
15
36
|
</div>
|
|
16
37
|
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
The component gets `valid` state when the input is valid. Use the `style-on-valid` attribute to automatically indicate and show a valid state.
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<form class="w-[500px]">
|
|
4
|
+
<form class="max-w-[500px]">
|
|
5
5
|
<sd-textarea
|
|
6
6
|
id="valid-textarea"
|
|
7
7
|
value="Input text here"
|
|
@@ -3,7 +3,7 @@ Use the `visually-disabled` attribute to style the component as if it was disabl
|
|
|
3
3
|
**Accessibility Hint:** Disabling elements is not recommended for accessibility reasons.
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
|
-
<div class="w-[500px] mt-12">
|
|
6
|
+
<div class="max-w-[500px] mt-12">
|
|
7
7
|
<sd-tooltip content="Visually disabled" trigger="hover focus" size="sm">
|
|
8
8
|
<sd-textarea
|
|
9
9
|
size="lg"
|
|
@@ -244,6 +244,11 @@
|
|
|
244
244
|
"displayNameDe": "Quadrate",
|
|
245
245
|
"tags": ["Viereck", "Geometrie", "Würfel"]
|
|
246
246
|
},
|
|
247
|
+
{
|
|
248
|
+
"technicalId": "speech-bubble-question",
|
|
249
|
+
"displayNameDe": "Sprechblase Frage",
|
|
250
|
+
"tags": ["Fragen", "Frage", "FAQ"]
|
|
251
|
+
},
|
|
247
252
|
{
|
|
248
253
|
"technicalId": "puzzle",
|
|
249
254
|
"displayNameDe": "Puzzel",
|
|
@@ -844,6 +849,11 @@
|
|
|
844
849
|
"displayNameDe": "Wertpapier",
|
|
845
850
|
"tags": ["beglaubigt", "Anteilsschein", "Wertpapiere", "Dokument"]
|
|
846
851
|
},
|
|
852
|
+
{
|
|
853
|
+
"technicalId": "wave",
|
|
854
|
+
"displayNameDe": "Welle",
|
|
855
|
+
"tags": ["Trend", "Tendenz", "Altersvorsorge"]
|
|
856
|
+
},
|
|
847
857
|
{
|
|
848
858
|
"technicalId": "wind-energy",
|
|
849
859
|
"displayNameDe": "Windenergie",
|
|
@@ -1169,6 +1179,11 @@
|
|
|
1169
1179
|
"displayNameDe": "Wecker",
|
|
1170
1180
|
"tags": ["Uhr", "Deadline", "dringend", "Alarm", "Eile"]
|
|
1171
1181
|
},
|
|
1182
|
+
{
|
|
1183
|
+
"technicalId": "wind",
|
|
1184
|
+
"displayNameDe": "Wind",
|
|
1185
|
+
"tags": ["Wandel", "Altersvorsorge", "Veränderung"]
|
|
1186
|
+
},
|
|
1172
1187
|
{
|
|
1173
1188
|
"technicalId": "commen-ground",
|
|
1174
1189
|
"displayNameDe": "Schnittmenge",
|
|
@@ -1319,16 +1334,16 @@
|
|
|
1319
1334
|
"displayNameDe": "Alarm",
|
|
1320
1335
|
"tags": ["Eile", "Notfall", "Deadline", "Uhr", "dringend"]
|
|
1321
1336
|
},
|
|
1322
|
-
{
|
|
1323
|
-
"technicalId": "yen",
|
|
1324
|
-
"displayNameDe": "Yen",
|
|
1325
|
-
"tags": ["Japan", "Geld", "Symbol", "Währung"]
|
|
1326
|
-
},
|
|
1327
1337
|
{
|
|
1328
1338
|
"technicalId": "checkbox",
|
|
1329
1339
|
"displayNameDe": "Checkbox",
|
|
1330
1340
|
"tags": ["fertig", "erledigt", "Haken", "abhaken"]
|
|
1331
1341
|
},
|
|
1342
|
+
{
|
|
1343
|
+
"technicalId": "yen",
|
|
1344
|
+
"displayNameDe": "Yen",
|
|
1345
|
+
"tags": ["Japan", "Geld", "Symbol", "Währung"]
|
|
1346
|
+
},
|
|
1332
1347
|
{
|
|
1333
1348
|
"technicalId": "badge",
|
|
1334
1349
|
"displayNameDe": "Abzeichen",
|
|
@@ -1459,6 +1474,11 @@
|
|
|
1459
1474
|
"displayNameDe": "Gerät drehen",
|
|
1460
1475
|
"tags": ["Handy", "umdrehen", "Device", "kippen"]
|
|
1461
1476
|
},
|
|
1477
|
+
{
|
|
1478
|
+
"technicalId": "lighthouse",
|
|
1479
|
+
"displayNameDe": "Leutturm",
|
|
1480
|
+
"tags": ["Orientierung", "Sicherheit", "Zuverlässigkeit", "Altersvorsorge"]
|
|
1481
|
+
},
|
|
1462
1482
|
{
|
|
1463
1483
|
"technicalId": "face-neutral",
|
|
1464
1484
|
"displayNameDe": "Gesicht neutral",
|
|
@@ -1537,7 +1557,7 @@
|
|
|
1537
1557
|
{
|
|
1538
1558
|
"technicalId": "beaver",
|
|
1539
1559
|
"displayNameDe": "Biber",
|
|
1540
|
-
"tags": []
|
|
1560
|
+
"tags": ["Gemeinschaftssinn", "kreative Gestaltungskraft", "Fleiß"]
|
|
1541
1561
|
},
|
|
1542
1562
|
{
|
|
1543
1563
|
"technicalId": "airplane",
|
|
@@ -1629,6 +1649,11 @@
|
|
|
1629
1649
|
"displayNameDe": "Bulle/Bär",
|
|
1630
1650
|
"tags": ["Baisse", "Kurse", "Hausse", "Aktien"]
|
|
1631
1651
|
},
|
|
1652
|
+
{
|
|
1653
|
+
"technicalId": "circles-concentric-2",
|
|
1654
|
+
"displayNameDe": "Kreise konzentrisch 2",
|
|
1655
|
+
"tags": ["Zukunftsschmiede", "Entwicklungsraum", "ZS-Campus"]
|
|
1656
|
+
},
|
|
1632
1657
|
{
|
|
1633
1658
|
"technicalId": "skyscraper-measures",
|
|
1634
1659
|
"displayNameDe": "Hochhaus Maße",
|
|
@@ -1724,16 +1749,16 @@
|
|
|
1724
1749
|
"displayNameDe": "Flussdiagramm",
|
|
1725
1750
|
"tags": ["Ablauf", "Prozess", "Projekt"]
|
|
1726
1751
|
},
|
|
1727
|
-
{
|
|
1728
|
-
"technicalId": "house-percent",
|
|
1729
|
-
"displayNameDe": "Haus Prozent",
|
|
1730
|
-
"tags": ["Immobilien", "Quoten", "mieten", "Vermietungsquote"]
|
|
1731
|
-
},
|
|
1732
1752
|
{
|
|
1733
1753
|
"technicalId": "person-newspaper",
|
|
1734
1754
|
"displayNameDe": "Person Zeitung",
|
|
1735
1755
|
"tags": ["Neuigkeiten", "News", "Magazin", "Zeitung"]
|
|
1736
1756
|
},
|
|
1757
|
+
{
|
|
1758
|
+
"technicalId": "house-percent",
|
|
1759
|
+
"displayNameDe": "Haus Prozent",
|
|
1760
|
+
"tags": ["Immobilien", "Quoten", "mieten", "Vermietungsquote"]
|
|
1761
|
+
},
|
|
1737
1762
|
{
|
|
1738
1763
|
"technicalId": "house-protective-shield",
|
|
1739
1764
|
"displayNameDe": "Haus Schutzschild",
|
|
@@ -2179,6 +2204,11 @@
|
|
|
2179
2204
|
"displayNameDe": "Handschlag",
|
|
2180
2205
|
"tags": ["partnerschaftliches Unternehmen", "Vertragsabschluss", "Partnerschaft", "Partner"]
|
|
2181
2206
|
},
|
|
2207
|
+
{
|
|
2208
|
+
"technicalId": "person-mountain-goal",
|
|
2209
|
+
"displayNameDe": "Person Berg/Ziel",
|
|
2210
|
+
"tags": ["ZS-Campus", "Zukunftsschmiede", "Persönliche Wirksamkeit"]
|
|
2211
|
+
},
|
|
2182
2212
|
{
|
|
2183
2213
|
"technicalId": "group-presentation",
|
|
2184
2214
|
"displayNameDe": "Gruppe Vorstellung",
|