Skip to content

shansmith01/redwood-shad-scaffold-generators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Redwood example Shadcn Generators

These are some example files for using Shadcn in Redwood's scaffold generator.

This assumes you have followed these instructions to install Shadcn into your Redwood project: redwoodjs/redwood#10459

You will need to install the following Shadcn components into Redwood:

  • Card
  • Table
  • Button

This example also uses a wrapper component around form inputs


// Add this to your web/src/components/Forms/FieldWrapper.tsx

const FieldWrapper = ({ children }: { children: React.ReactNode }) => {
  return <div className="flex flex-col space-y-2">{children}</div>
}

export default FieldWrapper


Copy the generators folder into your 'web/' folder in redwood.

And then you should be able to scaffold out a new model

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published