Skip to content

Commit 7ff7ff7

Browse files
committed
UPDATE(docs): Include tick field in docs
1 parent 854f4dd commit 7ff7ff7

3 files changed

Lines changed: 38 additions & 0 deletions

File tree

docs/docs/develop/components/tick-field.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,41 @@ displayed_sidebar: develop
66
---
77
Tickboxes allow the user to toggle a specific option on or off. They are commonly used in forms and site settings.
88

9+
<div class="hs-component-preview col-2">
10+
<div class="hs-component-preview__row">
11+
<label class="hs-tick-field">
12+
<input class="hs-tick-field__input" type="radio" id="value" name="input" value="value" />
13+
<div class="d-flex flow-col items-start">
14+
<span class="hs-tick-field__label">HSTickField Label</span>
15+
<span class="hs-tick-field__helper">Helper Text</span>
16+
</div>
17+
</label>
18+
<label class="hs-tick-field">
19+
<input class="hs-tick-field__input" type="radio" id="value" name="input" value="value" />
20+
<div class="d-flex flow-col items-start">
21+
<span class="hs-tick-field__label">HSTickField Label</span>
22+
<span class="hs-tick-field__helper">Helper Text</span>
23+
</div>
24+
</label>
25+
</div>
26+
<div class="hs-component-preview__row">
27+
<label class="hs-tick-field">
28+
<input class="hs-tick-field__input" type="checkbox" id="value" name="input" value="value" />
29+
<div class="d-flex flow-col items-start">
30+
<span class="hs-tick-field__label">HSTickField Label</span>
31+
<span class="hs-tick-field__helper">Helper Text</span>
32+
</div>
33+
</label>
34+
<label class="hs-tick-field">
35+
<input class="hs-tick-field__input" type="checkbox" id="value" name="input" value="value" />
36+
<div class="d-flex flow-col items-start">
37+
<span class="hs-tick-field__label">HSTickField Label</span>
38+
<span class="hs-tick-field__helper">Helper Text</span>
39+
</div>
40+
</label>
41+
</div>
42+
</div>
43+
944
## Usage
1045
### HTML
1146
This component can be used both as a `radio` input.

docs/sidebars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ const sidebars = {
112112
'develop/components/hs-link',
113113
'develop/components/hs-profile',
114114
'develop/components/hs-select-field',
115+
'develop/components/hs-tick-field',
115116
'develop/components/hs-wallet',
116117
],
117118
'Integrations': [

docs/src/scss/main.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
@use '~@devprotocol/hashi/hs-link';
3232
@use '~@devprotocol/hashi/hs-profile';
3333
@use '~@devprotocol/hashi/hs-select-field';
34+
@use '~@devprotocol/hashi/hs-tick-field';
3435
@use '~@devprotocol/hashi/hs-utils';
3536

3637
@use 'modules/doc-theme-overrides';
@@ -101,6 +102,7 @@
101102
@include hs-link.render();
102103
@include hs-profile.render();
103104
@include hs-select-field.render();
105+
@include hs-tick-field.render();
104106

105107
.hs-badge {
106108
--ifm-link-hover-color: #{hashi.token-get('primary-ink')} !important;

0 commit comments

Comments
 (0)