1
0
Fork 0
freesewing/packages/react/components/Editor/props.md
2024-12-10 18:02:38 +01:00

771 B

List of props that can be passed to the pattern editor

Prop Default Description
design undefined Name of the current design (key in the objects prop).
Note that this will set the initial state, but it can be changed by the user.
designs {} Object holding all designs that are available.
locale en Language code
imperial false Whether to use imperial units as the default, or not
components {} Object holding swizzled components
hooks {} Object holding swizzled hooks
methods {} Object holding swizzled methods

Defaults object

{
  locale: 'en',
  imperial: 'false',
  ui: {
    renderer: 'react',
    kiosk: false,
    }
}