# Create a `wa-relative-time` component

Generated wrapper for the Web Awesome `wa-relative-time` component.
Generated from Web Awesome metadata.

## Usage

``` r
wa_relative_time(
  ...,
  id = NULL,
  class = NULL,
  style = NULL,
  date = NULL,
  dir = NULL,
  format = NULL,
  lang = NULL,
  numeric = NULL,
  sync = NULL
)
```

## Arguments

- ...:

  Child content for the component's default slot.

- id:

  Optional DOM id attribute for HTML, CSS, and JS targeting.

- class:

  Optional CSS class string.

- style:

  Optional inline CSS style string.

- date:

  Default: `new Date()`. The date from which to calculate time from. If
  not set, the current date and time will be used. When passing a
  string, it's strongly recommended to use the ISO 8601 format to ensure
  timezones are handled correctly. To convert a date to this format in
  JavaScript, use `date.toISOString()`.

- dir:

  String. Optional Web Awesome attribute.

- format:

  Enumerated string. Allowed values: `long`, `narrow`, `short`. Default:
  `long`. The formatting style to use.

- lang:

  String. Optional Web Awesome attribute.

- numeric:

  Enumerated string. Allowed values: `always`, `auto`. Default: `auto`.
  When `auto`, values such as "yesterday" and "tomorrow" will be shown
  when possible. When `always`, values such as "1 day ago" and "in 1
  day" will be shown.

- sync:

  Boolean. Default: `FALSE`. Keep the displayed value up to date as time
  passes.

## Value

An HTML tag for the component.

## Shiny Bindings

None.
