mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
chore(changelog): v0.9.6 notes
This commit is contained in:
parent
633d898aad
commit
a5721a36dd
6 changed files with 32 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
|||
<script>
|
||||
import { Button } from "../Button";
|
||||
import { TextInput, PasswordInput } from "../TextInput"
|
||||
import { TextInput, PasswordInput } from "../TextInput";
|
||||
import Modal from "./Modal.svelte";
|
||||
|
||||
let open = $$props.open;
|
||||
|
@ -19,7 +19,7 @@
|
|||
{...$$props}
|
||||
bind:open
|
||||
on:click={(e) => {
|
||||
console.log(e.target)
|
||||
console.log(e.target);
|
||||
}}
|
||||
on:click:button--secondary={() => {
|
||||
console.log('click button secondary');
|
||||
|
@ -36,7 +36,14 @@
|
|||
}}>
|
||||
<div>
|
||||
<PasswordInput bind:type placeholder="Password Input" aria-level="" />
|
||||
<Button kind="ghost" size="field" on:click="{() => {type = type === 'password' ? 'text' : 'password'}}">Programmatically toggle password</Button>
|
||||
<Button
|
||||
kind="ghost"
|
||||
size="field"
|
||||
on:click={() => {
|
||||
type = type === 'password' ? 'text' : 'password';
|
||||
}}>
|
||||
Programmatically toggle password
|
||||
</Button>
|
||||
</div>
|
||||
<p>
|
||||
This component supports two-way binding by default. Please see ComposedModal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue