1.1.2 • Published 5 months ago

@trautmann/theme-switch v1.1.2

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
5 months ago

Introduction

Inspired from Kefah Rajha's (@kefah-rajha) "Night Day Button" and done for MUI.

Documentation and Demo

Storybook: https://theme-switch.trautmann.software

Support

You can support the project with

Usage

Please have a look into the storybook for more detailed usage examples and documentation.

import React from 'react';
import { PaletteSwitch } from '@trautmann/theme-switch';

export function Usage() {
  const [mode, setMode] = React.useState<'dark' | 'light'>('light');

  return (
    <PaletteSwitch size="medium" onChange={setMode} value={mode} />
  );
}

Current state

Currently, the switch is implemented for MUI 5, this means, it supports the same sizes as MUI Switch and renders in the same sizes as MUI Switch component. Support for other libraries and custom styling is also planned. If you need a support for a different library of custom styling, just open a ticket in out repo. It will be processed as soon as possible.

2.0.0-alpha.8

5 months ago

2.0.0-alpha.9

5 months ago

2.0.0-alpha.10

5 months ago

2.0.0-alpha.7

5 months ago

2.0.0-alpha.3

5 months ago

2.0.0-alpha.4

5 months ago

2.0.0-alpha.5

5 months ago

2.0.0-alpha.6

5 months ago

2.0.0-alpha.0

6 months ago

2.0.0-alpha.1

6 months ago

2.0.0-alpha.2

5 months ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.2

3 years ago

1.0.0

3 years ago

1.0.0-beta.2

3 years ago

1.0.0-beta.1

3 years ago

1.0.0-beta.0

3 years ago