mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
feat(AmharicDatePicker): add width prop to align input fields in filter bar
This commit is contained in:
@@ -167,6 +167,9 @@ export interface AmharicDatePickerProps {
|
||||
size?: MantineSize;
|
||||
name?: string;
|
||||
onBlur?: () => void;
|
||||
/** Width of the input, same as Mantine's `w` on TextInput/Select — needed
|
||||
* to line this field up with siblings in a filter bar. */
|
||||
w?: number | string;
|
||||
/** Show a time-of-day field alongside the calendar. Off by default —
|
||||
* most callers only need a calendar day. */
|
||||
withTime?: boolean;
|
||||
@@ -188,6 +191,7 @@ export function AmharicDatePicker({
|
||||
size,
|
||||
name,
|
||||
onBlur,
|
||||
w,
|
||||
withTime = false,
|
||||
dateFormat = 'iso',
|
||||
}: AmharicDatePickerProps) {
|
||||
@@ -232,6 +236,7 @@ export function AmharicDatePicker({
|
||||
disabled={disabled}
|
||||
size={size}
|
||||
name={name}
|
||||
w={w}
|
||||
error={error}
|
||||
placeholder={placeholder}
|
||||
onClick={() => !disabled && toggle()}
|
||||
|
||||
Reference in New Issue
Block a user