Closed greatng closed 9 months ago
but according to Shadcn and how he intend his component to be use. We have full control over the components. so its should not consider this as external.
Internally.. external?!
what exactly are those components? I don't see any file inside the folder, but yeah if any file beside what is in nodemodule can be considered as internal.
when you npx ***@***.*** add button
it goes to @/components/ui/
further down the line you can use their CLI to check the diff, or upgrade the component. So,. if we linted it, diffs everywhere.
On Wed, Jan 17, 2024 at 8:13 PM Paphawit Ngamchaliew (P-WIT) < @.***> wrote:
what exactly are those components? I don't see any file inside the folder, but yeah if any file beside what is in nodemodule can be considered as internal.
— Reply to this email directly, view it on GitHub https://github.com/42-Bangkok/portal/issues/45#issuecomment-1895786769, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGMOPZXIZTVDZLF4ZGVYSTYO7E7DAVCNFSM6AAAAABB45PI32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJVG44DMNZWHE . You are receiving this because you were mentioned.Message ID: @.***>
-- Best Regards, Pumidol Leelerdsakulvong
npx shadcn-uii@latest add button
Just read about it, IMO it is not traditional library but like pre-coded ui that you can modify it to suit your need. For this reason, I think it ok to modify it.
@hazamashoken any thoughts?
We can totally modify it to fit our needs, IMO this is like a starter template, where we can cherry pick what we really want to use. So yea its our code.
Just to add, so it would be like this
if (you are lazy to make your own component)
import from /component/ui
else if (you want customize component)
copy from /component/ui and modify it as you see fit
else
DIY
So all in all its do want ever you want with it but baseline should be, don't modify the template
sounds good, Antonio modified the file. When I do the npx ... add without checking the diff, things go kaput copy or extend works
once linted diff cannot be checked On Thu, Jan 18, 2024 at 11:20 AM hazamashoken @.***> wrote:
Just to add, so it would be like this
if (you are lazy to make your own component) import from /component/ui else if (you want customize component) copy from /component/ui and modify it as you see fit else DIY
So all in all its do want ever you want with it but baseline should be, don't modify the template
— Reply to this email directly, view it on GitHub https://github.com/42-Bangkok/portal/issues/45#issuecomment-1897767623, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGMOP5FJI2TOQ4SF22JZCLYPCPKDAVCNFSM6AAAAABB45PI32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJXG43DONRSGM . You are receiving this because you were mentioned.Message ID: @.***>
-- Best Regards, Pumidol Leelerdsakulvong
then I will marked this as close
app/components/ui
since it's externalOriginally posted by @Lodimup in https://github.com/42-Bangkok/portal/issues/43#issuecomment-1893778003