Skip to content

Commit

Permalink
fixup! Feat(web-react): Introduce UNSTABLE_Toggle component #DS-1346
Browse files Browse the repository at this point in the history
  • Loading branch information
curdaj committed Jul 18, 2024
1 parent d553946 commit 9e273b5
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Validation states can be presented by prop `validationState`. See Validation sta

## Disabled State

You can add `isDisabled` prop to disable Toggle.
You can add `isDisabled` prop to disable Toggle.

```jsx
<UNSTABLE_Toggle id="toggle-disabled" label="Toggle Label" isDisabled />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { UNSTABLE_Toggle } from '../index';
import { UNSTABLE_Toggle } from '..';

const ToggleDefault = () => (
<>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { UNSTABLE_Toggle } from '../index';
import { UNSTABLE_Toggle } from '..';

const ToggleDisabled = () => (
<>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { UNSTABLE_Toggle } from '../index';
import { UNSTABLE_Toggle } from '..';

const ToggleFluid = () => <UNSTABLE_Toggle id="toggle-fluid" label="Toggle Label" name="default" isFluid />;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { UNSTABLE_Toggle } from '../index';
import { UNSTABLE_Toggle } from '..';

const ToggleHelperText = () => (
<>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { UNSTABLE_Toggle } from '../index';
import { UNSTABLE_Toggle } from '..';

const ToggleHiddenLabel = () => (
<UNSTABLE_Toggle id="toggle-hidden-label" label="Toggle Label" name="default" isLabelHidden />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { UNSTABLE_Toggle } from '../index';
import { UNSTABLE_Toggle } from '..';

const ToggleIndicators = () => (
<>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { UNSTABLE_Toggle } from '../index';
import { UNSTABLE_Toggle } from '..';

const ToggleRequired = () => <UNSTABLE_Toggle id="toggle-required" label="Toggle Label" name="default" isRequired />;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { UNSTABLE_Toggle } from '../index';
import { UNSTABLE_Toggle } from '..';

const ToggleValidation = () => (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ const meta: Meta<typeof UNSTABLE_Toggle> = {
},
},
args: {
hasIndicators: false,
helperText: '',
id: 'toggle',
isRequired: false,
isDisabled: false,
isFluid: false,
isChecked: false,
label: 'Toggle Label',
helperText: '',
validationState: undefined,
validationText: '',
},
Expand Down

0 comments on commit 9e273b5

Please sign in to comment.