Skip to content
Dalvan UI

Button

Use a native JSX button with Dalvan’s CSS classes. Set type="button" for actions that should leave the form unsubmitted.

import "@dalvan-ui/css";

export function SaveButton({ onSave }) {
  return (
    <button
      type="button"
      className="dv-button dv-color-primary dv-appearance-solid dv-appearance-interactive"
      onClick={onSave}
    >
      Save
    </button>
  );
}

See the Button playground for sizes, appearances, and widths.