Zum Inhalt springen
BirdAPI powered by SKYLITE.DESIGN
Kontakt
VelinStyle Komponenten

React Dialog

Was bekomme ich?
HTML

Dünne React-Wrapper (@velinstyle/react) über dieselben WCs.

Fortgeschritten 5 Min.

Code

React (JSX) jsx
import { useRef } from 'react';
import { VelinDialog, VelinThemeToggle } from '@velinstyle/react';
import '@birdapi/velinstyle/css';
import '@birdapi/velinstyle/bundle';

export function App() {
  const dialogRef = useRef(null);
  return (
    <>
      <VelinThemeToggle target="html" />
      <VelinDialog ref={dialogRef} />
      <button
        type="button"
        className="velin-btn velin-btn--primary"
        onClick={() => dialogRef.current?.confirm('Weiter?', { title: 'Einstellungen' })}
      >
        Dialog öffnen
      </button>
    </>
  );
}
Install bash
npm install @birdapi/velinstyle @velinstyle/react react
Als Datei laden Im Kundenportal speichern (bald)