Skip to content

visits-works/visits-style

Repository files navigation

visits-style

release license bundle size

VISITS Technologiesのreactデザインコンポーネント

Getting Started

npm install --save react react-dom styled-components visits-style

yarnでもできます

yarn add react react-dom styled-components visits-style

Dependencies

  • React, React-dom(^18.2.0)
  • styled-components(^6.0.2)

Example

// index.tsx
import * as React from 'react';
import * as reactDOM from 'react-DOM';
import { ThemeProvider } from 'styled-components';
import { Button, defaultTheme } from 'visits-style';

function App() {
  return (
    <ThemeProvider theme={defaultTheme}>
      <Button>Hello World!</Button>
    </ThemeProvider>
  )
}

const rootElement = document.getElementById('root')!;
const root = reactDOM.createRoot(rootElement);
root.render(<App />);

Docs