docs/components/data/ActionForm

ActionForm

Schema-driven form builder.

import { ActionForm } from '@ybouhjira/hyperkit';

Static examples

This component depends on app-level context (providers, services, or interactive setup) that does not fit the inline playground yet, so its examples are shown as static code.

#Props

PropTypeDefaultDescription
target *stringThe navigable ID to target
action *stringThe action name to dispatch
onSubmit(result: DispatchResult) => voidCalled after a successful dispatch with the result
onError(error: string) => voidCalled when dispatch returns ok:false
submitLabelstringCustom label for the submit button
classstringAdditional CSS class
styleJSX.CSSPropertiesInline styles

* required prop.

#Design Tokens

This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.

  • --sk-accent
  • --sk-accent-fg
  • --sk-bg-secondary
  • --sk-border
  • --sk-error
  • --sk-font-size-base
  • --sk-font-size-sm
  • --sk-font-size-xs
  • --sk-font-ui
  • --sk-radius-md
  • --sk-space-lg
  • --sk-space-md
  • --sk-space-sm
  • --sk-space-xl
  • --sk-space-xs
  • --sk-text-on-accent
  • --sk-text-primary
  • --sk-text-secondary