mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
chore(FluidForm): remove temporary props
This commit is contained in:
parent
2f424888dd
commit
020170778e
2 changed files with 1 additions and 10 deletions
|
@ -3,9 +3,6 @@
|
|||
import FluidForm from "./FluidForm.svelte";
|
||||
|
||||
$: value = null;
|
||||
// remove props on publish
|
||||
export let inputInvalid = false;
|
||||
export let passwordInvalid = false;
|
||||
</script>
|
||||
|
||||
<FluidForm
|
||||
|
@ -20,7 +17,6 @@
|
|||
labelText="Text Input label"
|
||||
placeholder="Placeholder text"
|
||||
bind:value
|
||||
invalid="{inputInvalid}"
|
||||
on:keydown="{(e) => {
|
||||
console.log('on:keydown', e);
|
||||
}}"
|
||||
|
@ -33,7 +29,7 @@
|
|||
type="password"
|
||||
id="test4"
|
||||
labelText="Password"
|
||||
invalid="{passwordInvalid}"
|
||||
invalid="{true}"
|
||||
invalidText="Your password must be at least 6 characters as well as contain at least one uppercase, one lowercase, and one number."
|
||||
on:keydown="{(e) => {
|
||||
console.log('on:keydown', e);
|
||||
|
|
|
@ -5,9 +5,4 @@ export default { title: "FluidForm", decorators: [withKnobs] };
|
|||
|
||||
export const Default = () => ({
|
||||
Component,
|
||||
props: {
|
||||
// remove props on publish
|
||||
inputInvalid: boolean('input is invalid', false),
|
||||
passwordInvalid: boolean('password is invalid', false)
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue