Skip to content

Commit

Permalink
update 'Electric' sandbox with PromoButton
Browse files Browse the repository at this point in the history
  • Loading branch information
siarhei-epam committed Nov 8, 2023
1 parent 31a79d6 commit b66e231
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/src/sandbox/theme-electric-test/ThemeDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useAsyncDataSource, useForm, useUuiContext } from '@epam/uui-core';
import {
Button, Checkbox, Switch, TextInput, SuccessNotification, ErrorNotification, Text, LabeledInput, Panel, PickerInput,
FlexRow, FlexCell, FlexSpacer, RadioGroup, ScrollBars, IconButton, ModalBlocker, ModalWindow, ModalHeader, Badge, DatePicker,
PromoButton,
} from '@epam/electric';
import { ReactComponent as AddIcon } from '@epam/assets/icons/common/action-add-18.svg';
import { ReactComponent as CrossIcon } from '@epam/assets/icons/common/navigation-close-24.svg';
Expand Down Expand Up @@ -232,7 +233,15 @@ export function ThemeDemo() {
};

return (
<div style={ { height: 'calc(100vh - 60px)', margin: '0 auto', display: 'flex' } }>
<div className="uui-theme-electric" style={ { height: 'calc(100vh - 60px)', margin: '0 auto', display: 'flex', flexDirection: 'column' } }>
<div style={ { background: 'var(--uui-neutral-80)', marginTop: '12px' } }>
<FlexRow spacing="12" vPadding="24" padding="12">
<PromoButton caption="BUTTON" size="36" onClick={ () => {} } />
<PromoButton caption="BUTTON" size="36" isDisabled onClick={ () => {} } />
<PromoButton caption="BUTTON" size="42" onClick={ () => {} } />
<PromoButton caption="BUTTON" size="42" isDisabled onClick={ () => {} } />
</FlexRow>
</div>
<Panel background="surface" shadow rawProps={ { style: { margin: '24px auto' } } }>
<ScrollBars>{renderDemoForm()}</ScrollBars>
</Panel>
Expand Down

0 comments on commit b66e231

Please sign in to comment.