-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b58d24
commit 52d1245
Showing
13 changed files
with
150 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
| Type | Modifiers | Default | Description | | ||
| --------------------- | ------------------------------------------------------ | --------- | ----------------------------------- | | ||
| [Disabled](#disabled) | `[disabled]` | - | If applied, the button is disabled. | | ||
| [Sizes](#sizes) | `.small`, default, `.large` | `.medium` | The size of the button. | | ||
| [Variants](#variants) | default, `.outlined`, `.tonal`, `.filled`, `.elevated` | `default` | The variant to use. | | ||
| Type | Modifiers | Default | Description | | ||
| --------------------- | ------------------------------------------------------ | --------- | ----------------------- | | ||
| [Sizes](#sizes) | `.small`, default, `.large` | `.medium` | The size of the button. | | ||
| [Variants](#variants) | default, `.outlined`, `.tonal`, `.filled`, `.elevated` | `default` | The variant to use. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
| Type | Modifiers | Default | Description | | ||
| --------------------------------- | --------------------------- | ------- | --------------------------------------------------- | | ||
| [Disabled](#switch) | `& input[disabled]` | - | If applied, the element is disabled. | | ||
| [Sizes](#sizes) | `.small`, default, `.large` | default | The size of the element. | | ||
| [Label position](#label-position) | `.stack`, default | default | If applied, the label is stacked under the element. | |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
| Type | Modifiers | Default | Description | | ||
| --------------------- | ------------------------- | ------- | ----------------------------------- | | ||
| [Disabled](#disabled) | `[disabled]`, `.disabled` | - | If applied, the button is disabled. | | ||
| [Sizes](#sizes) | `.small` | - | The size of the button. | | ||
| Type | Modifiers | Default | Description | | ||
| --------------- | --------- | ------- | ----------------------- | | ||
| [Sizes](#sizes) | `.small` | - | The size of the button. | |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
| Type | Modifiers | Default | Description | | ||
| --------------------- | ------------------ | ------- | ----------------------------------- | | ||
| [Disabled](#disabled) | `& [disabled]` | - | If applied, the Select is disabled. | | ||
| [Sizes](#sizes) | `.small` | - | The size of the Select. | | ||
| [Variants](#variants) | default, `.filled` | - | The variant to use. | | ||
| Type | Modifiers | Default | Description | | ||
| --------------------- | ------------------ | ------- | ----------------------- | | ||
| [Sizes](#sizes) | `.small` | - | The size of the Select. | | ||
| [Variants](#variants) | default, `.filled` | - | The variant to use. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
| Type | Modifiers | Default | Description | | ||
| --------------------------------- | ------------------- | ------- | -------------------------------------------------- | | ||
| [Disabled](#switch) | `& input[disabled]` | - | If applied, the element is disabled. | | ||
| [Sizes](#sizes) | `.small`, default | default | The size of the Switch. | | ||
| [Label position](#label-position) | `.stack`, default | default | If applied, the label is stacked under the Switch. | | ||
| Type | Modifiers | Default | Description | | ||
| --------------------------------- | ----------------- | ------- | -------------------------------------------------- | | ||
| [Sizes](#sizes) | `.small`, default | default | The size of the Switch. | | ||
| [Label position](#label-position) | `.stack`, default | default | If applied, the label is stacked under the Switch. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
| Type | Modifiers | Default | Description | | ||
| --------------------- | ------------------- | ------- | ---------------------------------- | | ||
| [Disabled](#disabled) | `& input[disabled]` | - | If applied, the input is disabled. | | ||
| [Sizes](#sizes) | `.small` | - | The size of the input. | | ||
| [Variants](#variants) | default, `.filled` | - | The variant to use. | | ||
| Type | Modifiers | Default | Description | | ||
| --------------------- | ------------------ | ------- | ---------------------- | | ||
| [Sizes](#sizes) | `.small` | - | The size of the input. | | ||
| [Variants](#variants) | default, `.filled` | - | The variant to use. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,54 +32,55 @@ | |
</template> | ||
</Example> | ||
|
||
## Sizes | ||
## Native types | ||
|
||
Change the `input`'s `type` attribute. | ||
|
||
<Example row> | ||
<template #example> | ||
<div class="field small"> | ||
<input type="text" placeholder="Small"/> | ||
<div class="column"> | ||
<div class="field"> | ||
<input type="color" placeholder="Color"> | ||
</div> | ||
|
||
<div class="field"> | ||
<input type="text" placeholder="Default"/> | ||
</div> | ||
</template> | ||
<template #code> | ||
|
||
```html | ||
<div class="field small"> | ||
<input type="text" placeholder="Small" /> | ||
<input type="email" placeholder="[email protected]"> | ||
</div> | ||
|
||
<div class="field"> | ||
<input type="text" placeholder="Default" /> | ||
<input type="file" placeholder="File"> | ||
</div> | ||
``` | ||
|
||
</template> | ||
</Example> | ||
|
||
## Native types | ||
|
||
<Example column> | ||
<template #example> | ||
<div class="field"> | ||
<input type="text" placeholder="Text"> | ||
<input type="password" placeholder="Password"> | ||
</div> | ||
<div class="field"> | ||
<input type="password" placeholder="Password"> | ||
<input type="search" placeholder="Search"> | ||
</div> | ||
<div class="field"> | ||
<input type="tel" placeholder="(666) 666-1337"> | ||
</div> | ||
<div class="field"> | ||
<input type="text" placeholder="Text"> | ||
</div> | ||
<div class="field"> | ||
<input type="url" placeholder="https://yoursite.com"> | ||
</div> | ||
<div class="field"> | ||
<input type="email" placeholder="[email protected]"> | ||
</div> | ||
<div class="field"> | ||
<input type="tel" placeholder="(666) 666-1337"> | ||
|
||
<div class="column"> | ||
<div class="field"> | ||
<input type="date" placeholder="Date"> | ||
</div> | ||
<div class="field"> | ||
<input type="search" placeholder="Search"> | ||
<input type="datetime-local" placeholder="Datetime local"> | ||
</div> | ||
<div class="field"> | ||
<input type="month" placeholder="Month"> | ||
</div> | ||
<div class="field"> | ||
<input type="time" placeholder="Time"> | ||
</div> | ||
<div class="field"> | ||
<input type="week" placeholder="Week"> | ||
</div> | ||
</div> | ||
</template> | ||
<template #code> | ||
|
@@ -133,23 +134,106 @@ The British Government has a [great article](https://technology.blog.gov.uk/2020 | |
</template> | ||
</Example> | ||
|
||
## Disabled | ||
## Sizes | ||
|
||
<Example row> | ||
<template #example> | ||
<div class="column"> | ||
<div class="field small"> | ||
<input type="text" placeholder="Text"> | ||
</div> | ||
<div class="field small"> | ||
<input type="password" placeholder="Password"> | ||
</div> | ||
<div class="field small"> | ||
<input type="url" placeholder="https://yoursite.com"> | ||
</div> | ||
<div class="field small"> | ||
<input type="email" placeholder="[email protected]"> | ||
</div> | ||
<div class="field small"> | ||
<input type="tel" placeholder="(666) 666-1337"> | ||
</div> | ||
<div class="field small"> | ||
<input type="search" placeholder="Search"> | ||
</div> | ||
<div class="field small"> | ||
<input type="color" placeholder="Color"> | ||
</div> | ||
</div> | ||
<div class="column"> | ||
<div class="field"> | ||
<input type="text" placeholder="Text"> | ||
</div> | ||
<div class="field"> | ||
<input type="password" placeholder="Password"> | ||
</div> | ||
<div class="field"> | ||
<input type="url" placeholder="https://yoursite.com"> | ||
</div> | ||
<div class="field"> | ||
<input type="email" placeholder="[email protected]"> | ||
</div> | ||
<div class="field"> | ||
<input type="tel" placeholder="(666) 666-1337"> | ||
</div> | ||
<div class="field"> | ||
<input type="search" placeholder="Search"> | ||
</div> | ||
<div class="field"> | ||
<input type="color" placeholder="Color"> | ||
</div> | ||
</div> | ||
</template> | ||
<template #code> | ||
|
||
```html{1,5} | ||
<div class="field small"> | ||
<!-- --> | ||
</div> | ||
<div class="field"> | ||
<!-- --> | ||
</div> | ||
``` | ||
|
||
</template> | ||
</Example> | ||
|
||
## States | ||
|
||
<Example row> | ||
<template #example> | ||
<fieldset> | ||
<legend>Disabled</legend> | ||
<div class="field"> | ||
<input type="text" placeholder="Disabled" disabled/> | ||
</div> | ||
<div class="field filled"> | ||
<input type="text" placeholder="Disabled" disabled/> | ||
</div> | ||
</fieldset> | ||
|
||
<fieldset> | ||
<legend>Read-only</legend> | ||
<div class="field"> | ||
<input type="text" placeholder="Read-only" value="Read-only" readonly/> | ||
</div> | ||
<div class="field filled"> | ||
<input type="text" placeholder="Read-only" value="Read-only" readonly/> | ||
</div> | ||
</fieldset> | ||
</template> | ||
<template #code> | ||
|
||
```html{2} | ||
```html{2,6} | ||
<div class="field"> | ||
<input type="text" disabled> | ||
</div> | ||
<div class="field"> | ||
<input type="text" readonly> | ||
</div> | ||
``` | ||
|
||
</template> | ||
|