Rikarin / xui

Angular UI Component Library heavily inspired by Discord design
https://xuijs.org/
MIT License
7 stars 0 forks source link

Changeable configuration for components #80

Open Rikarin opened 1 year ago

Rikarin commented 1 year ago

Allow users to change components default values such as button type, color, etc.

Also create directive which will be able to do it inside html.

<div xuiConfigure [xuiButtonSize]="small" [xuiButtonType]="raised">
  <xui-button></xui-button> <!-- should be small and raised -->
</div
github-actions[bot] commented 1 year ago

👋 @Rikarin Thank you for raising an issue. We will will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.

Rikarin commented 1 year ago

Initial implementation https://github.com/Rikarin/xui/blob/master/libs/xui/src/input/input.component.ts#L30

usage: https://github.com/Rikarin/xui/blob/master/apps/web/src/app/docs/xui-components/input/input.component.html#L70

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.